2

I have been trying to deploy from a GitHub repository to Heroku. For pushing my changes to GitHub I am using Mac UI Client for GitHub.

Now in the heroku app setup, I changed at https://dashboard.heroku.com/apps/myapp/settings . Here I made changes in option GitHub Rep (Link your app to a GitHub repository to see commit diffs in the activity log.). I added as my github-user/repository-name

Now when i use myappname.heroky.com I am redirected to a default page which says :

Heroku | Welcome to your new app! Refer to the documentation if you need help deploying.

In the documentation it is all commands which is going over me since i use Github UI tool. Any idea if this can be deployed w/o using the commands?

I am asking this particular thing, since last time I used AppHarbor and it simply pulled my github rep w/o any hiccups.

1 Answer 1

3

Adding your GitHub repo to the Heroku app settings will not set up automatic deployments. It just allows Heroku to provide commit information in the app logs.

To achieve what you are looking for, you need to set up continuous deployment (or "CD"). The easiest way to do this is with a continuous integration (or "CI") solution.

One common CI server is Jenkins, though that will require you to set it up manually. Nowadays, there are several automated CI/CD services you can take advantage of, including Travis, CircleCI, Codeship, Snap. All of them have options to automatically deploy to Heroku after building your app (which can be trigger by a push to GitHub).

Sign up to request clarification or add additional context in comments.

4 Comments

so it is unlike appharbor which does a CD/CI altogether ?
@CodeMonkey Yes, Heroku does not handle CI/CD, but plenty of third-party services do, and many have Heroku add-ons as well, like addons.heroku.com/codeship.
git push heroku_shortit $COMMIT_ID:refs/heads/master [Report a Problem]0 min 3 sec Warning: Permanently added 'heroku.com,50.19.85.154' (RSA) to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
You have to upload your public key to Heroku. Type this in the command line: heroku keys:add ~/.ssh/id_rsa.pub If you don't have a public key, Heroku will prompt you to add one automatically which works seamlessly. Just use: heroku keys:add

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.