我目前正在部署一個測試軌5.0應用數字海洋下面這個教程:Rails的數字海洋客運問題5.0.2部署
我的代碼,是在教程,但是當使用capistrano進行部署時,我會得到以下乘客日誌:重新啓動。
There are no Phusion Passenger-served applications running whose paths begin with '/home/deploy/app_name''.
最終結果是ip仍顯示我Nginx的歡迎頁面。
歡迎所有輸入。謝謝!
編輯:
00:56 passenger:restart
01 passenger-config restart-app /home/deploy/app_name --ignore-app-not-running
01 There are no Phusion Passenger-served applications running whose paths begin with '/home/deploy/app_name'.
編輯2 /etc/nginx/sites-enabled/default
server {
listen 80;
listen [::]:80 ipv6only=on;
server_name mydomain.com;
passenger_enabled on;
rails_env production;
root /home/deploy/my_app_name/current/public;
# redirect server error pages to the static page /50x.html
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
什麼'/ home目錄的內容/配置/ app_name'目錄? –
他們是:當前版本repo revisions.log分享謝謝! – Ender
您需要將您的nginx'root'指令改爲:'/ home/deploy/app_name/current/public' –