Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view code deployed on Heroku?

Tags:

heroku

I have deployed my REST based java application on Heroku.
Everything is working fine. However I can see code on heroku dashboard as other developers working with me also want to collaborate.
Do they need to clone .git repository given in settings page of application.
Please help how to do this ?
And how to push code to bitbucket so my code doesn't get vanished?

like image 537
virendrao Avatar asked Apr 21 '15 06:04

virendrao


People also ask

Is my code public on Heroku?

No, the code is not public. Do not confuse GIT with GITHUB. When you deploy to heroku the repository is private to the owner and the added collaborators.

How do I find my Heroku files?

The dashboard can be accessed via the CLI: $ heroku addons:open filepicker Opening filepicker for sharp-mountain-4005… or by visiting the Heroku Dashboard and selecting the application in question. Select Ink file picker from the Add-ons menu.


1 Answers

When you create application on Heroku it automatically gets Git repo - it's a normal repo so you colleagues can just clone it (if they're added as contributors) as you said.

To push code to bitbucket, create repo there and add it as a remote to your local git configuration. Then just push to heroku remote and bitbucket remote at will. For automated solution you can consider Github Integration: https://devcenter.heroku.com/articles/github-integration

like image 72
Dariusz Aniszewski Avatar answered Sep 22 '22 02:09

Dariusz Aniszewski