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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:13:18+00:00 2026-05-22T23:13:18+00:00

I have recently started work on an application that is already deployed to production.

  • 0

I have recently started work on an application that is already deployed to production. I’ve done a full checkout from production and have got the app up and running locally. The problem I face now is handling the production repo and my test heroku repo.

At the moment, I’d like to be able to checkout the db (using heroku db:pull) from production and do a build to my test heroku app. This is very cumbersome and I’m nervous that I’ll accidently commit test code to the production server.

Is there an elegant solution to handle such a scenario? Is there a command I can run to see which app my local environment is currently sync’d with?

Thanks,
gearoid.

  • 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-22T23:13:19+00:00Added an answer on May 22, 2026 at 11:13 pm

    Heroku is just a remote git repository so git remote will show you the remotes for your project – there’s a verbose option git remove -v too that will show the URLs of the remotes.

    Once you’ll pulled the production code you’ll then need to push that to the testing heroku app with something like git push myapp-test mytestbranch:master assuming you’ve setup a remote named myapp-test pointing to your test app on heroku.

    There’s a gem called ‘heroku_san’ that provides similar command lines to capistrano, eg rake production deploy, rake staging deploy that make commands a bit more explicit.

    In short though, just be very careful and double check the push commands – especially heroku db:push (note, you’ll need to specify –app myapp-test to target your test application!) – the CLI does give you warnings but trust me, it’s easy to get it wrong ;). If in doubt, double and triple check!

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

Sidebar

Related Questions

I have recently started work on a project that has already been running for
An application I have recently started work on has to register two dll's, because
I have recently started working on a legacy application that has most of its
I've started work recently at a new company and they have an existing application
I have recently started working on a very large C++ project that, after completing
I recently started work at a new company and a .net web application we
I recently started transforming all tables from our Oracle production into models so I
I have recently started work on a large project in .net (C#) and I
I have recently started following the examples from The Little Schemer and when trying
I have recently started using coffeescript with Rails and I am finding that sometimes

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.