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 7686951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:35:32+00:00 2026-05-31T19:35:32+00:00

I have deployed my app in remote server with capistrano and git. I’m novice

  • 0

I have deployed my app in remote server with capistrano and git. I’m novice with capistrano and git, and my question is:

e.g.

I make a change and add code in any file from my local project, e.g. change 2 lines in controller or model or view or css or js or routes.rb or devise.rb…etc.

before I had a ftp and replace the files via ftp, I see that this way is not good for rails.

I want to know how can I send those changes to my production remote app in my vps remote server.

I have tried:

cap deploy

but is very very slowly and overload the server. I dont think that is way is correct

I dont know if this must be doing with capistrano or with git e.g. I suposse with git is:

git remote add origin user@ip.ip.ip.ip/~/project
git push origin master

Its possible use this code for deploy changes in production app in remote server? or have I that use capistrano for make changes in app in production server?

Sorry for mi ignorance but I’m novice with rails and capistrano and git.

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-05-31T19:35:33+00:00Added an answer on May 31, 2026 at 7:35 pm

    You can deploy code using either just git itself or with capistrano (together with git).

    Using just Git

    1. You only need to run “git remote add origin user@ip.ip.ip.ip/~/project” one time, after this your settings are already saved. If you want to see your remote git repos, just type “git remote”
    2. After you have made your changes and run git commit (I assume you know how to do this already), then run “git push origin master” to push all your changes to the remote repo.
    3. Now SSH to your remote server, eg “ssh myuser@mydomain.com” (for Mac) or using Putty (for Windows)
    4. Once logged in to the remote server, navigate to your app root folder.
      • if you have never cloned your git repo to your remote server before, you will first need to run “git clone “
      • otherwise, just run “git pull origin master”. This will fetch and pull the changes from Step 2 above to your remote server. And now you are finished!

    Advantage: This approach only pulls your most recent changes to your remote server, so it is much faster.

    Disadvantage: You have to manually run a lot of commands to SSH to server and git pull.

    Using Capistrano

    1. You mention you can run “cap deploy” so I assume your Capistrano setup is fine. This approach is slower because it pulls your latest commit (and potentially your whole git repo) when you deploy.
    2. If you want to speed up your Capistrano deployment, you can add the following to your deploy.rb. This keeps a copy of your git repo on your remote server instead of doing a full git clone upon every deploy.

      set :deploy_via, :remote_cache

    Advantage: Just type “cap deploy” and deployment happens (plus all the capistrano benefits of deployment rollback etc)

    Disadvantage: Slower than just git pull.

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

Sidebar

Related Questions

I have a Ruby on Rails app that I've recently deployed to a remote
I have a Rails app deployed on Heroku with the Heroku scheduler add-on successfully
I have 2 servers. The hosted rails app server and git repository server. The
I have an app deployed on Heroku. I can access the remote heroku console
I've deployed, after some struggle, a web-app on a (remote) Tomcat 5.5 server (Turnkey
I have deployed an app to an IIS6 server. For now, I'm using the
I deployed my Django app to a remote server, but tastypie doesn't recognize a
I have deployed my app and it's in use. Every month or so I
I have recently deployed an app to a shared host (webfaction), and for no
I have deployed a Django 1.3.1 app on apache2 in my machine using mod_wsgi

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.