私は現在、展開を管理するために多段拡張機能とともにCapistranoを使用しています。config / deploy / stage.rbで:domainを設定した後でも、「cap stage deploy」を呼び出すと、プロジェクトのドメイン名の入力を求められます。どの設定が欠落していますか?
これが私のdeploy.rbです
set :stages, %w(vm rtpstage ciscostage ciscodemo hp)
require 'deprec'
require 'capistrano/ext/multistage'
require 'lib/monit_recipes'
set :application, "systems"
set :repository, "git://github.com/mdwrigh2/systems.git"
# If you aren't using Subversion to manage your source code, specify
# your SCM below:
set :scm, :git
set :user, "rails"
default_run_options[:pty] = true
set :ruby_vm_type, :mri # :ree, :mri
set :web_server_type, :apache # :apache, :nginx
set :app_server_type, :mongrel # :passenger, :mongrel
set :db_server_type, :mysql # :mysql, :postgresql, :sqlite
# set :packages_for_project, %w(libmagick9-dev imagemagick libfreeimage3) # list of packages to be installed
# set :gems_for_project, %w(rmagick mini_magick image_science) # list of gems to be installed
# Update these if you're not running everything on one host.
# If you aren't deploying to /opt/apps/#{application} on the target
# servers (which is the deprec default), you can specify the actual location
# via the :deploy_to variable:
# set :deploy_to, "/opt/apps/#{application}"
namespace :deploy do
task :restart, :roles => :app, :except => { :no_release => true } do
top.deprec.app.restart
end
end
そして、これが私のvm.rbです
set :domain, "juicy.vm"
role :app, "juicy.vm"
role :web, "juicy.vm"
role :db, "juicy.vm", :primary => true
role :monitor, "juicy.vm"