- thin
- Procfile (web)
- ./.env
% cd chairs
% cp .env.sample .env #=> copy as .env
% (edit .env for PORT, SECRET_TOKEN etc.)
% bundle install --path .bundle/gems
% bundle exec foreman start web # => thin is booted by foreman
If you need to check on unicorn, then:
% RAILS_ENV=development bundle exec foreman run unicorn_rails
- unicorn
- Procfile (web_production)
- current/.env is copied from shared/.env at
deploy:set_dot_env
task afterdeploy:create:symlink
% cd chairs
% cp .env.sample .env #=> copy as .env
% (edit .env for DEPLOY_USER, DEPLOY_HOST etc.)
% bundle exec foreman run deploy #=> deploy to production (assets:precompile and unicorn:restart tasks are also called)
bundle exec foreman run unicorn:start
bundle exec foreman run unicorn:stop
bundle exec foreman run unicorn:reload
bundle exec foreman run unicorn:restart
bundle exec foreman run deproy:migrate
bundle exec foreman run deploy:seed
bundle exec foreman run asstes:precompile
bundle exec foreman run assets:clean
Please note this issue ddollar/foreman#274