Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8061413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:19:54+00:00 2026-06-05T10:19:54+00:00

This is my first rails project and its been a real pleasure working with

  • 0

This is my first rails project and its been a real pleasure working with capistrano.

My current issue is that I need to run cap deploy:migrate and cap:deploy:migration as seperate tasks. I believe there should be a cap deploy:migration which combines these.

Here is my terminal output:

kris$ cap staging deploy:migration
      triggering load callbacks
     * executing `staging'
    the task `deploy:migration' does not exist

My setup is using multi stages and is using the RVM capistrano plugin.

Here is my gem file:

source 'https://rubygems.org'

gem 'rails', '3.2.1'

group :development do
  gem 'sqlite3'
end

group :production do
  gem 'mysql2'
end

group :test do
  gem 'sqlite3'
  gem 'ZenTest'
end

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'uglifier', '>= 1.0.3'
end

#formtastic 2.2 breaks activeadmin
gem "formtastic", "~> 2.1.1"
gem "activeadmin", "~> 0.4.3"

# meta_search required for activeadmin
gem 'meta_search'

gem 'jquery-rails'
gem "paperclip", "~> 3.0"

gem 'acts_as_list'
 gem 'unicorn'

# Deploy with Capistrano
 gem 'capistrano'
 gem 'rvm-capistrano'

gem 'mail'
gem 'friendly_id'

and here is my config/deploy file:

set :rvm_ruby_string, 'ruby-1.9.3-p194@xxx'                     # Or:
#set :rvm_ruby_string, ENV['GEM_HOME'].gsub(/.*\//,"") # Read from local system

require "rvm/capistrano"                               # Load RVM's capistrano plugin.
require "bundler/capistrano"

# set :verbose ,1

require 'capistrano/ext/multistage'
set :stages, %w(staging production)
set :default_stage, "staging"
set :deploy_via, :remote_cache

set :user, "webm"
# set :deploy_via, :remote_cache
set :use_sudo, false

set :scm, "git"
set :repository, "git@xx.beanstalkapp.com:/xx.git"

# :branch is being set in stage files

default_run_options[:pty] = true
# ssh_options[:forward_agent] = true

after "deploy", "deploy:cleanup" # keep only the last 5 releases

namespace :deploy do
    %w[start stop restart].each do |command|
        desc "#{command} unicorn server"
        task command, roles: :app, except: {no_release: true} do
            run "#{sudo} service unicorn_#{server_configuration} #{command}"
        end
    end

    desc "build missing paperclip styles"
    task :build_missing_paperclip_styles, :roles=> :app do
        run "cd #{release_path}; RAILS_ENV=production bundle exec rake paperclip:refresh:missing_styles"
    end
    after "deploy:update", "deploy:build_missing_paperclip_styles"

    task :setup_config, roles: :app do
        puts "#making symlink to nginx sites-enabled"
        run "#{sudo} ln -fs #{current_path}/config/server/#{server_configuration}/nginx.conf /etc/nginx/sites-enabled/#{server_configuration}"
        puts "#making symlink to unicorn service script"
        run "#{sudo} ln -fs #{current_path}/config/server/#{server_configuration}/unicorn_init.sh /etc/init.d/unicorn_#{server_configuration}"
        puts "#making a the new config directory"
        run "mkdir -p #{shared_path}/config"
        run "sunique 1"
        put File.read("config/database.yml"), "#{shared_path}/config/database.yml"
        run "sunique 0"
        puts "Now edit the config files in #{shared_path}."
    end
    after "deploy:setup", "deploy:setup_config"

    task :symlink_config, roles: :app do
        run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"

        puts "#for reference:"
        puts "#rvm wrapper 1.9.3@ac_helenefrance_01 ruby-1.9.3-p194@#{server_configuration} unicorn cap"
        puts "#now be sure to run: sudo update-rc.d unicorn_#{server_configuration} defaults"
    end
    after "deploy:finalize_update", "deploy:symlink_config"

    # desc "Make sure local git is in sync with remote."
    # task :check_revision, roles: :web do
        # if :isRemote == false
            # unless `git rev-parse HEAD` == `git rev-parse beanstalk/#{branch}`
                # puts "WARNING: HEAD is not the same as beanstalk/#{branch}"
                # puts "Run `git push` to sync changes."
                # exit
            # end
        # end
    # end
    #before "deploy", "deploy:check_revision"
end

Any help with why deploy:migration is broken would be very helpful.
thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T10:19:56+00:00Added an answer on June 5, 2026 at 10:19 am

    You forgot an s, as in cap deploy:migrations

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on my first real-world Rails project. So far, I'm mostly mashing up
I'm working on my first 'real' (as opposed to playing around) rails 3 project
So this is my first real Ruby on Rails project. I've learned my lesson
OK, I've been using sqlite3 as development successfully for this tiny rails 3.1 project,
I'm doing my first Ruby on Rails project. I am working on a project
Working on my first rails project so please pardon any incorrect terminology. I created
This is my first rails project and first rails post, so I might have
I'm working on my first rails project and i've built a small site using
First as a note I am using this plugin in a Rails app. Ok
Take a look at this screenshoot first: That white box is ON the orange

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.