This guide was created with Scribe in 35 seconds. Sign in and create your own!
How to Deploy to Heroku From GitHub
|
0 step |
35 seconds
To get started, first open "Terminal"
Zoom Saved
2
The process to install Git and the Heroku CLI can be done entirely through the Terminal. From here, we can even deploy our app.
Zoom Saved
3
Let's started by initializing a repository. Type "git init" and hit [[Enter]]
4
Next, make sure you're tracking your app's code but adding all files and writing your first commit message. To do this type "git add ." and hit [[Enter]]
5
Next, create your first commit message by typing "git commit -m "commit message"" and hit [[Enter]]
6
Now we'll create a Heroku remote via the command line interface. To do this. Type the following and hit [[Enter]]:
heroku create -a example-app
7
You can confirm that the remote has been properly set for Heroku by running the following command "git remote -v" and hit [[Enter]]
8
Finally, we can deploy our code by pushing from your local branch to the Heroku remote. Do this by typing the following command:
"git push heroku main" and hit [[Enter]]
Was this Scribe helpful? Save this document for future reference.
Save for Later
Have something to say?Create an account to leave messages for the author to see!Create an account
Feedback
This Scribe is in tip-top shape!Leave feedback if there are any issues with this Scribe