我正在尝试使用Capistrano将我的应用程序部署到我的DigitalOcean服务器上.
这不是我第一次在DigitalOcean上配置RoR服务器而Capistrano部署了这就是为什么我感到困惑; 我的工作流程没有改变任何内容.
这是我的Capistrano配置文件:
require 'bundler/capistrano'
require 'rvm/capistrano'
set :application, "foobar"
set :repository, "git@bitbucket.org:sergiotapia/foobar.git"
set :ping_url, "http://192.168.1.1/"
set :scm, :git
set :scm_verbose, true
default_run_options[:pty] = true
set :user, "sergiotapia" # The user on the VPS server.
set :password, "hunter2"
set :use_sudo, false
set :deploy_to, "/home/sergiotapia/www/#{application}"
set :deploy_via, :remote_cache
set :keep_releases, 1
set :rails_env, "production"
set :migrate_target, :latest
role :web, "192.168.1.1"
role :app, "192.168.1.1"
namespace :deploy do
task :start do ; end
task :stop do ; end
task :restart, roles: :app, …Run Code Online (Sandbox Code Playgroud)