В настоящее время я использую Foreman на стадии подготовки (Ubuntu), и как только я заработаю, я переключусь на использование выскочки.
Мой Procfile.staging выглядит так:
nginx: sudo service nginx start
unicorn: bundle exec unicorn -c ./config/unicorn.rb
redis: bundle exec redis-server
sidekiq: bundle exec sidekiq -v -C ./config/sidekiq.yml
Я могу успешно запустить nginx, используя:
$ sudo service nginx start
Однако, когда я запускаю $ foreman start
, в то время как остальные три процесса запускаются успешно, nginx не выполняет:
11:15:46 nginx.1 | started with pid 15966
11:15:46 unicorn.1 | started with pid 15968
11:15:46 redis.1 | started with pid 15971
11:15:46 sidekiq.1 | started with pid 15974
11:15:46 nginx.1 | Starting nginx: nginx.
11:15:46 nginx.1 | exited with code 0
11:15:46 system | sending SIGTERM to all processes
SIGTERM received
11:15:46 unicorn.1 | terminated by SIGTERM
11:15:46 redis.1 | terminated by SIGTERM
11:15:46 sidekiq.1 | terminated by SIGTERM
Так почему же nginx не запускается при запуске Форманом?
$ sudo foreman start
? - person Breaking not so bad   schedule 06.02.2013