brettt89 / silverstripe-docker
3
2017-08-28 03:52 UTC
This package is auto-updated.
Last update: 2024-12-10 08:03:37 UTC
README
This repository is designed to be used with SilverStripe development environments. It contains packages and functionality commonly used when developing with SilverStripe.
Maintainer Contact
- Brett Tasker brett.tasker@gmail.com
Requirements
Installation
composer create-project brettt89/silverstripe-docker ./my/website/folder
./my/website/folder
should be the root directory where your codebase and configuration
files will live.
Applications packaged in docker-compose.yml
- Apache Webserver
- MySQL Database
- Composer
- SSPAK
Setup
These commands should be run from within the project folder created during Installation.
E.g. ./my/website/folder
Clone website into public/
directory
git clone <repo> public
NOTE: It is important that the website codebase exists in the public/
directory
Install composer dependencies:
docker-compose run composer install
Import database with sspak:
NOTE: Copy your sspak into the snapshots/
directory
docker-compose run sspak load snapshots/<sspak> public
Finally, bring up the site and the asset builder:
docker-compose up -d web
The asset builder uses gulp to watch the swift directory for any changes and rebuilds as necessary
The site will then be available at http://localhost/.