Skip to content
Ridibooks CMS Authentication Server
PHP JavaScript HTML CSS Shell Makefile Dockerfile
Branch: 2.x
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Updated a legacy; gitlab.ridi.io -> gitlab.com (#89) Feb 26, 2019
config Removed a apache security headers without HSTS Jul 3, 2019
db Update docker style (#86) Aug 24, 2018
src Merge branch '2.x' into release/2.3.3 Jul 18, 2019
tests Updated a login return_url paramter on auth test Jul 3, 2019
views Removed a inline src on login page Jul 3, 2019
web
.bowerrc Restruct directories in form of Silex convention. (#29) Jan 10, 2018
.dockerignore Update docker style (#86) Aug 24, 2018
.env.docker Release/2.3.1 (#93) Jun 17, 2019
.env.template Release/2.3.1 (#93) Jun 17, 2019
.gitignore Add user group for tags (#68) Jun 1, 2018
.htaccess Restruct directories in form of Silex convention. (#29) Jan 10, 2018
.php_cs Add token introspect (#64) May 18, 2018
.travis.yml Fix the bug that doesn't push a image while deploying on dev branch (2) Mar 19, 2019
CHANGELOG.md Updated a CHANGELOG.md Jul 18, 2019
Dockerfile Append a apache security headers on Dockerfile Jul 2, 2019
Makefile Fix the bug that doesn't push a image while deploying on dev branch (2) Mar 19, 2019
README.md
bower.json Split out codes about “cms client”. Mar 10, 2017
composer.json Add token API (#91) Mar 19, 2019
composer.lock Update docker style (#86) Aug 24, 2018
docker-compose.yml Update docker style (#86) Aug 24, 2018
phinx.yml
phpunit.xml Set Travis-CI (#36) Mar 19, 2018

README.md

CMS

Build Status

Overview

This is a main server of RIDI CMS service.

Getting Started

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

Build

You can get the following images as a result of the make build. See docker-compose.build.yml

  • cms
  • cms-builder

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

Deployment

We use Travis CI to deploy. See .travis.yml
You needs to be careful when push tags or create a release.

You can’t perform that action at this time.