1
我试图通过Capistrano将我的Rails应用程序部署为我的网站Blog。我在/ rails_app/Blog /在cPanel中创建了一个Rails应用程序,并删除了生成的框架代码。使用Capistrano部署rails应用程序
当我在终端
cap deploy:setup
键入此命令我得到这个错误信息
[email protected] ~/documents/Aptana Studio 3 Workspace/Blog
$ cap deploy:setup
* executing `deploy:setup'
* executing "sudo -p 'sudo password: ' mkdir -p /rails_app/Blog/ /rails_app/Bl
og/releases /rails_app/Blog/shared /rails_app/Blog/shared/system /rails_app/Blog
/shared/log /rails_app/Blog/shared/pids"
servers: ["mydomain.co.nz"]
connection failed for: mydomain.co.nz (Errno::ETIMEDOUT: A connection attempt fail
ed because the connected party did not properly respond after a period of time,
or established connection failed because connected host has failed to respond. -
connect(2))
这里是我的deploy.rb文件的配置设置
set :application, "mydomain.co.nz"
set :repository, "set your repository location here"
set :scm, :subversion
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
# These are not not part of the defaults
set :port, 12002
set :deploy_to, "/rails_app/Blog/"
#
role :web, application # Your HTTP server, Apache/etc
role :app, application # This may be the same as your `Web` server
role :db, application, :primary => true # This is where Rails migrations will run
role :db, application
什么是mydomain.co.nz?尝试ping或ssh它。设置:server,your_server_name。设置:存储库path_to_repository。 – ryaz