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

  • Home
  • SEARCH
  • 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 7407127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:39:46+00:00 2026-05-29T05:39:46+00:00

I am in the process of uploading a website to a server. I can

  • 0

I am in the process of uploading a website to a server. I can successfully upload the site when i use cap deploy:cold and the site works fine. However, i am planning ahead and want a means of updating the code on the website / running migrations on the db, without losing all the data in the database which seems to happen when i use cap deploy:cold.

My deploy.rb file contains:

require "bundler/capistrano"
#require "csv"

set :application, "my domain"
set :user, "my username"

set :repository, "."
set :deploy_via, :copy
set :deploy_to, "/home/users/#{user}/html/#{application}"
set :ssh_options, { :user => user, :port => 50022 }
set :use_sudo, false

set :scm, :none

role :web, application
role :app, application
role :db, application, :primary => true

namespace :deploy do
task :start do ; end
task :stop do ; end
task :restart, :roles => :app, :except => { :no_release => true } do
    run "#{try_sudo} touch
    #{File.join(current_path,'tmp','restart.txt')}"
end
end

This code is what i was advised to use by our hosting provider. As i mentioned, cap deploy:cold works successfully and the site works as expected. When I run cap deploy i get the error – We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly. I noted that the processes called by cap deploy:cold are deploy:update, deploy:migrate and deploy:start. To try to narrow down the problem, i tried running deploy:update on its own, it works with no errors being reported but produces the same error message when i load the site. Running cap deploy:start doesn’t solve the problem.

Is anybody able to shed any light on what might be happening here? Can you also confirm how I should go about uodating the website code & running database migrations in the future, without losing the data currently in the databases?
`

  • 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-05-29T05:39:47+00:00Added an answer on May 29, 2026 at 5:39 am

    If I’m reading this right, you want one command to update your code and do all pending migrations. Luckily, cap deploy:migrations does just that. (not to be confused with cap deploy:migrate which only migrates.

    If you want to run migrations while only using cap deploy, you could add:

    before 'deploy:symlink', 'deploy:migrate' #use hook 'deploy:create_symlink' if using 2.10.0
    

    To your recipe.

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

Sidebar

Related Questions

I'm building an app with an image upload function. While the uploading process is
I recently migrated my magento website to a different server, and here's the process
How to process a excel file without uploading it into server? also how to
I was uploading my file using below code,it works fine but some time it
Could anybody explain to me the process of uploading to and downloading form and
Possible Duplicate: Limit jvm process memory on ubuntu In my application I'm uploading documents
I'm currently in the process of upgrading old II6 automation scripts that use the
Am trying to automate the process of uploading an artifact generated by Maven into
In Silverlight, I want to display progress of, for example, an uploading process as
Whenever the uploading process happens through the Browsers rather than IE, the path belongs

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.