Hello,
adott egy weboldal amit puma -val kell futtatni, ezzel nincs is semmi baj, de nem tudom jelenleg demonkent elinditani, keszitettem egy ruby.rb file-t:
#!/usr/bin/env puma
# start puma with:
# RAILS_ENV=production bundle exec puma -C ./config/puma.rb
#application_path = '/opt/wagn/current'
application_path = '/var/www/www.xy.hu/xy-master'
railsenv = 'production'
directory application_path
environment railsenv
daemonize true
pidfile "#{application_path}/tmp/pids/puma-#{railsenv}.pid"
state_path "#{application_path}/tmp/pids/puma-#{railsenv}.state"
stdout_redirect
"#{application_path}/log/puma-#{railsenv}.stdout.log",
"#{application_path}/log/puma-#{railsenv}.stderr.log"
threads 0, 16
bind "unix://#{application_path}/tmp/sockets/#{railsenv}.socket"
ha ezek utan megprobalom elinditani a ruby.rb -vel:
$ RAILS_ENV=production bundle exec puma -C ./config/puma.rb
Could not locate Gemfile
Otlet?
koszi,
FBK
- 2883 megtekintés
Hozzászólások
Előre bocsátom, hogy nem értek hozzá, csak találtam egy ilyet:
https://github.com/puma/puma#capistrano-deployment
Capistrano-n keresztül egyszerűen tudod elindítani daemonként a puma-t.
- A hozzászóláshoz be kell jelentkezni