1
我正在爲Ubuntu 12.04上的Rails 4應用程序設置登臺環境。 我使用: - rbenv管理紅寶石 - Capistrano的爲deployemnt - 工頭管理服務使用upstart/foreman運行服務時找不到綁定
我特別想運行闕作爲服務。我的Procfile看起來像
que: bundle exec rake que:work
我已經成功導出了Procfile的新貴。我SAPP闕 - 1.conf看起來像
start on starting ft-id-que
stop on stopping ft-id-que
respawn
exec su - deployer -c 'cd /home/deployer/apps/sapp/releases/20140307080502; export PORT=5000; bundle exec rake que:work >> /home/deployer/apps/sapp/current/log/que-1.log 2>&1'
當我嘗試啓動它(sudo start sapp
)我得到以下錯誤:
-su: bundle: command not found
但是如果我cd到的/ home /部署/ apps/sapp/releases/20140307080502,我手動運行bundle exec rake que:work
執行rake。
我在這裏錯過了什麼嗎?
謝謝。