Heads up! To view this whole video, sign in with your Courses Plus account or enroll in your free 7-day trial. Sign In Enroll
Well done!
      You have completed Deploy a Node Application to Heroku!
      
    
You have completed Deploy a Node Application to Heroku!
Preview
    
      
  This video discusses what Heroku is and what you need to get ready to deploy.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
                      [MUSIC]
                      0:00
                    
                    
                      [SOUND] Hello there, Andrew here,
JavaScript teacher here at Treehouse.
                      0:04
                    
                    
                      And in this workshop,
we're going to deploy an app to Heroku.
                      0:08
                    
                    
                      Heroku is a hosting platform where
you can deploy PHP, Ruby, Python, and
                      0:13
                    
                    
                      most importantly, Node.js applications.
                      0:17
                    
                    
                      It's free to get started.
                      0:20
                    
                    
                      The free tier is fine for
development purposes and
                      0:22
                    
                    
                      websites for small amounts of traffic.
                      0:26
                    
                    
                      But as your needs grow,
                      0:29
                    
                    
                      you have the option to scale up
your application in paired tiers.
                      0:30
                    
                    
                      The main idea and benefit of using Heroku
as a hosting platform is that it takes
                      0:34
                    
                    
                      the headache out of setting
up your own server online.
                      0:39
                    
                    
                      Often this is a complicated process,
but with Heroku,
                      0:43
                    
                    
                      you can simply use Git to
deploy your application.
                      0:46
                    
                    
                      Heroku doesn't only host your application,
but
                      0:49
                    
                    
                      also provide you with add-ons for your
application from other service providers.
                      0:51
                    
                    
                      Add-ons could include a database service
for hosted instances of MySQL or MongoDB.
                      0:59
                    
                    
                      Other add-ons include email and
SMS services,
                      1:07
                    
                    
                      application monitoring services
like New Relic and much, much more.
                      1:10
                    
                    
                      We're only deploying a simple app today,
so we won't need any of this.
                      1:15
                    
                    
                      To deploy an app first,
you have to have Git installed.
                      1:19
                    
                    
                      If you're wondering about deploying a map
with Node, you probably have this already
                      1:23
                    
                    
                      installed, if not, I'll link to our
Git resources in the teacher notes.
                      1:28
                    
                    
                      Next you need to sign up to Heroku.
                      1:32
                    
                    
                      You'll be ask to confirm
your email address.
                      1:36
                    
                    
                      Once you do,
you'll be asked to create a password.
                      1:38
                    
                    
                      Finally, you need to download
the Heroku Toolbelt.
                      1:41
                    
                    
                      This helps you set up and manage your
application from the command line
                      1:45
                    
                    
                      as well as a wide array of
add-ons they have to offer.
                      1:48
                    
                    
                      Once you've signed up, Heroku does
a pretty good job of getting you
                      1:52
                    
                    
                      download the Heroku Toolbelt for
managing your hosted applications.
                      1:56
                    
                    
                      If you haven't deployed an app yet,
you'll be prompted with this page.
                      2:01
                    
                    
                      You want to click on Node.js,
and then Set up.
                      2:05
                    
                    
                      Now, if these pages look different,
try and find the Download Toolbelt link.
                      2:10
                    
                    
                      Once you have that
installed on your system,
                      2:15
                    
                    
                      we'll get preparing the application for
deployment.
                      2:17
                    
              
        You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up