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 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 recently started work at a new company and a .net web application we
I have an application developed on the iphone. I have recently started making it
The small software team I work on recently got approved to upgrade to Visual
I've recently started work on a new project using EpiServer which I am totally
I've been a web developer for some time now, and have recently started learning
I have recently just started working with Lucene (specifically, Lucene.Net) and have successfully created
I recently started managing a project on GitHub where people have been submitting pull
I recently started following the online course on iPhone development from Stanford University on
I have recently started learning wpf and am trying to use mvvm. My understanding
I have recently started looking into using Azure but I'm having some issues getting

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.