Access to a file or folder on heroku server

JavaGitHeroku

Java Problem Overview


When I deploy my application on Heroku server, the server generate an app automatically and I found on my resource a git url. Example: [email protected]:myapp-ss-1338.git. How can I access this url to view source code or folder via a web browser?

Java Solutions


Solution 1 - Java

heroku run bash is the best way to see what is actually deployed to dynos. As for the git repo you should treat it more like a way to deploy your app (and so therefore ephemeral) than a place to store your code.

There is no way to view what is in that repo from your web browser.

If you want to get at the files in the Heroku repo you can do so by doing a git clone [repo address].

Solution 2 - Java

If necessary, you might be able to clone your app’s source from its Heroku Git repository using the heroku git:clone command:

$ heroku git:clone -a myapp

Replace myapp with the name of your app.

This command creates a copy of the Heroku-hosted repository that contains your app’s source and complete repository history. It also includes a heroku Git remote to simplify future pushes.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionTien NguyenView Question on Stackoverflow
Solution 1 - JavaEric FodeView Answer on Stackoverflow
Solution 2 - JavaVrajaView Answer on Stackoverflow