Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (29.3k points)

I have an existing Rails app on GitHub and deployed on Heroku. I'm trying to set up a new development machine and have cloned the project from my GitHub repository. However, I'm confused as to how to link this folder up to Heroku. Originally, I used the heroku create command, but obviously, I don't want to do that this time since it will create another Heroku instance.

1 Answer

0 votes
by (50.2k points)

Heroku project is based on the Heroku git remote. 

To add your remote in current repository use:

git remote add Heroku [email protected]:project.git

Here the project is the name of Heroku project. After this, you can use the HerokuXXXX commands and push the changes to Heroku using 

git push Heroku master

Browse Categories