README
A dockerlized demo app with Rails and Vue.js.
Requirements
Development
Puma + Webpack Dev Server + MySQL
Run
docker-compose up
You can access the server at http://localhost:3000
.
If you change something, execute the following command, instead:
docker-compose up --build
Shutdown
docker-compose down
Test
With the running app service:
docker-compose exec app ./bin/rspec
Production Mock (Precompile + Nginx)
Puma + Nginx + MySQL
Run
docker-compose -f docker-compose-prod.yml up
You can access the server at http://localhost
.
If you change something, execute the following command, instead:
docker-compose -f docker-compose-prod.yml up --build
Shutdown
docker-compose down
Deployment to Heroku
CLI
Deployment from your local PC with heroku.yml.
git push heroku master
CircleCI (CI/CD)
It will be deployed via CircleCI when the master branch is updated in GitHub.