This is a main server of RIDI CMS service.
git clone https://github.com/ridi/cms.git cd cms make build # Build Docker image make up # Run services sleep 30s # (Wait for DB creating..) make db # Initialize DB schema sleep 3s # (Wait for DB schema changing..) make test # Run test open http://localhost make log # Watch docker-compose logs make down # Clean Docker resources
You can get the following images as a result of the
make build. See docker-compose.build.yml
Manage DB schema
We use Phinx to manage DB schema.
# Create new DB migration. vendor/bin/phinx create NewMigrationName # Edit the skeleton file created in db/migrations vim db/migrations/20180123123456_new_migration_name.php # Apply the migration. vendor/bin/phinx migrate
We use Travis CI to deploy. See .travis.yml
You needs to be careful when push tags or create a release.