1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Switching to passenger

This commit is contained in:
2018-07-17 11:30:36 +00:00
parent 94b6d9aaa3
commit 1a6e2a08a8
3 changed files with 6 additions and 3 deletions

View File

@@ -52,7 +52,8 @@ gem 'cancancan'
gem 'round_robin_tournament'
gem 'rb-readline'
gem 'delayed_job_active_record'
gem 'puma'
#gem 'puma'
gem 'passenger'
gem 'travis'
group :development do

View File

@@ -1,2 +1,3 @@
worker: bundle exec rake jobs:work
web: bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development}
#web: bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development}
web: bundle exec passenger start -p $PORT --max-pool-size 3

View File

@@ -70,4 +70,5 @@ RUN RAILS_ENV=production bundle exec rake assets:precompile
# By default, simply start puma.
WORKDIR /rails
CMD bundle exec puma -t 5:5 -b 'ssl://0.0.0.0:443?key=/ssl/server.key&verify_mode=none&cert=/ssl/server.crt' -e production
#CMD bundle exec puma -t 3:3 -b 'ssl://0.0.0.0:443?key=/ssl/server.key&verify_mode=none&cert=/ssl/server.crt' -e production
CMD bundle exec passenger start -p 443 --max-pool-size 3 --environment production --ssl --ssl-certificate /ssl/server.crt --ssl-certificate-key /ssl/server.key