Ric*_*rdo 2 ruby-on-rails upstart foreman
我能找到的唯一错误就是看 dmesg
[ 603.598951] init: thx4-web-1 main process ended, respawning
[ 603.607935] init: thx4-web-1 main process (3901) terminated with status 127
[ 603.607988] init: thx4-web-1 main process ended, respawning
[ 603.616866] init: thx4-web-1 main process (3903) terminated with status 127
[ 603.616917] init: thx4-web-1 respawning too fast, stopped
Run Code Online (Sandbox Code Playgroud)
操作系统:Debian 7,chruby(2.1.2),新贵(1.6.1-1)和领班(0.74.0)
只有一个进程,以简化Procfile.staging中的调试过程:
web: RAILS_ENV=staging bundle exec puma -e staging -C config/puma.rb
Run Code Online (Sandbox Code Playgroud)
工头生成的文件:
# /etc/init/thx4.conf
start on runlevel [2345]
stop on runlevel [!2345]
# /etc/init/thx4-web.conf
start on starting thx4
stop on stopping thx4
# /etc/init/thx4-web-1.conf
start on starting thx4-web
stop on stopping thx4-web
respawn
env PORT=5000
setuid deployer
chdir /home/deployer/apps/thx4/releases/20140707183433
exec RAILS_ENV=staging bundle exec puma -e staging -C config/puma.rb
Run Code Online (Sandbox Code Playgroud)
当我$ foreman start -f Procfile.staging在app文件夹中运行时,一切正常.
| 归档时间: |
|
| 查看次数: |
2389 次 |
| 最近记录: |