Capistrano invites to the project's domain name

I am currently using Capistrano along with a multi-stage extension to manage deployments. Even after setting up: domain in config / deploy / stage.rb, when "deploy header" is called, it prompts me for the domain name for the project. What settings are missing?

Here is my 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

      


And here is my vm.rb

set :domain, "juicy.vm"
role :app, "juicy.vm"
role :web, "juicy.vm"
role :db,  "juicy.vm", :primary => true
role :monitor, "juicy.vm"

      

+1


a source to share


1 answer


I'm just guessing (because I haven't used this multi-stage extension), but shouldn't you be entering the real stage in the cap command? for example if your scene is called vm then you should type "cap vm deploy" instead of "deploy cap" ???



0


a source







All Articles