【发布时间】:2017-03-14 14:06:32
【问题描述】:
我目前正在按照本教程将测试 Rails 5.0 应用程序部署到数字海洋:
我的代码在教程中是原样的,但是在使用 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/deploy/app_name目录的内容是什么? -
它们是:当前版本 repo revisions.log 共享 谢谢!
-
你需要将你的 nginx
root指令改为:/home/deploy/app_name/current/public -
已经在
/etc/nginx/sites-enabled/default中设置了
标签: ruby-on-rails nginx capistrano passenger web-deployment