【发布时间】:2014-08-28 13:11:50
【问题描述】:
我一直在尝试将我的应用部署到 vps 并收到此错误!部署失败并出现错误:#
这是我的 deploy.rb
# config valid only for Capistrano 3.1
lock '3.2.1'
set :application, 'appname'
set :repo_url, 'https://someone@bitbucket.org/'
set :branch, 'master'
set :scm, :git
set :deploy_to, '/home/dir'
set :deploy_via, :remote_catche
set :user, "user"
set :scm_username, "username"
set :use_sudo, false
#default_run_options[:pty] = true tried uncomenting this and it threw me an error
# Default value for :scm is :git
# Default value for :format is :pretty
# set :format, :pretty
# Default value for :log_level is :debug
# set :log_level, :debug
namespace :deploy do
desc "Restart nginx"
task :restart do
run "#{deploy_to}/bin/restart"
end
end
这是我的 production.rb
role :app, %w{web334.webfaction.com}
role :web, %w{web334.webfaction.com}
role :db, %w{postgres}
我该怎么做才能成功部署这个应用程序,帮助
【问题讨论】:
标签: ruby-on-rails ruby capistrano vps