How to Deploy to Heroku From GitHub | Scribe

    How to Deploy to Heroku From GitHub

      1
      To get started, first open "Terminal"
      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.
      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]]