Tip:
Highlight text to annotate it
X
so awesome job you've got a simple web app running on heroku
you've got hello world what we need to do now is a bit of clean up
and post mortem then we can move to bigger and better things
so the very last thing we need to do is terminate your ec2 instance
so it doesn't keep running the way you do that is you go to your amazon
web services dash board you click on ec2 you go to your ec2 sub dashboard
you go to instances right click your instance then you just go and click terminate
you can also stop it, it is different from terminating, you can read here about
the details, we'll go into that later in the course.
so the reason that terminating this does not terminate your heroku app is that
your ec2 instance is where you developed and you pushed it out over here
and you've shut it down so this will just keep running on its own.
it's worth consulting this figure over again, we've done most of
these things in the figure with one exception - we didn't actually do any
pushing of code, but we did connect via ssh we pulled code from github
and we pushed code to heroku and we viewed that code in the browser
so that is the development over here and deployment to heroku over there.
you can get much more sophisticated than this, this is baby's first web app
but it's always useful to see how many different kinds of machines are involved
and it also helps to get familiar with executing the commands remotely
versus locally.
in the interest of speed, we did a number of things in this interative
startup we don't normally do. for example we worked with pem files in the
directory where they landed rather than moving them to ssh.
in practice, you want to put code through three stages,
a dev, staging and production branch before pushing it to the live site
there's a lot of shortcuts that we took to make things simple but we're going
to cover things like this in more detail as the course progresses.
you may also find it useful now that you've got some familiarity to go through
the vocabulary over here we will have some multiple choice questions
on this content via homework number 1 so great job
you've got your first web app up and now let's now move on to even bigger things