Work with a partner to implement the following user story:
- As a web developer, I want to deploy my application to services like Heroku so that I can share my app with the world.
-
It's done when I have initialized a Git repository by running
git init
at the root of my existing project. -
It's done when I have modified the
PORT
variable inserver.js
according to the Heroku documentation. -
It's done when I have created a new Heroku app using the Heroku CLI.
-
It's done when I have verified that the Heroku remote URL was added using the appropriate Git command.
-
It's done when I have added and committed all my files and pushed to Heroku.
-
It's done after I have confirmed that the application was deployed successfully by running
heroku open
.
Refer to the Full-Stack Blog on installing the Heroku CLI.
Refer to the documentation:
Heroku documentation on getting started with Node.js
Heroku documentation on creating a Heroku remote
How can you use the command heroku logs --tail
to troubleshoot deployment errors?
If you have completed this activity, work through the following challenge with your partner to further your knowledge:
- When you created your Heroku account, you might have seen the Heroku dashboard. What useful information can you learn about your application from this page?
Use Google or another search engine to research this.
© 2022 Trilogy Education Services, LLC, a 2U, Inc. brand. Confidential and Proprietary. All Rights Reserved.