小编jui*_*icy的帖子

来自nginx /乘客的"来自申请的不完整回复"

我尝试通过capistrano在nginx和ubuntu上部署我的rails应用程序,如https://gorails.com/deploy/ubuntu/14.04页面上的教程.但最后我收到一条错误信息:

Incomplete response received from application
Run Code Online (Sandbox Code Playgroud)

在我的浏览器中.这可能是乘客的错误,但我怎么能弄明白该怎么办?

ruby-on-rails passenger nginx

66
推荐指数
4
解决办法
5万
查看次数

Capistrano:my.server.ipadress上不存在链接文件database.yml

在我尝试通过capistrano将我的应用程序部署到我的服务器后,我收到以下错误消息:

DEBUG [605f198a] Finished in 0.084 seconds with exit status 1 (failed).
ERROR linked file /home/deploy/myrailsapp/shared/config/database.yml does not exist on xx.xxx.xx.xxx
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as deploy@xx.xxx.xx.xxx: exit

SystemExit: exit

Tasks: TOP => deploy:check:linked_files
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as deploy@xx.xxx.xx.xxx: exit
Run Code Online (Sandbox Code Playgroud)

我的deploy.rb是:

set :deploy_to, '/home/deploy/myrailsapp'
set :linked_files, %w{config/database.yml}
set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system}



namespace :deploy …
Run Code Online (Sandbox Code Playgroud)

deployment ssh capistrano ruby-on-rails

15
推荐指数
2
解决办法
1万
查看次数

标签 统计

ruby-on-rails ×2

capistrano ×1

deployment ×1

nginx ×1

passenger ×1

ssh ×1