Homework for 14B

Review

Topics Covered: Deploying to Heroku


Exercises

E1: We go Live?!

  1. What database does heroku use?
  2. What is the difference between production mode and development mode? Which one did we use locally so far?
  3. What is the rake command to migrate on heroku?
  4. What git command do we use to push to heroku?

E2: Kitties in the Cloud

All this time, purrings stayed local. Now that the kitties are armed with the power of heroku, it's time to unleash kitty creativity on to the web. Deploy your meowbook on heroku following the steps in the tutorials below.

First, setup your local environment for pushing to heroku. In order to do that, follow the tutorial here. Remember, software engineering is also a lot about reading documentations.

Next, to push your meowbook app to heroku, follow the steps listed in this Heroku tutorial.
Note:. You can ignore the documentation Web Server onward.

Since you're not creating a new app, add the gem 'pg', group: :production line and also add gem 'sqlite3', group: :development in the Gemfile of your meowbook.
Please also refer to the database.yml file on Tasky to make sure the differences in your production and development mode are maintained. DON'T SIMPLY COPY PASTE CODE FOR THIS FILE off the the tutorial. You will run into errors.

Please see a TA if you're not able to get through these tutorials.


Projects

One of the best practices in Software engineering is to use Git to your advantage. That is why it was created in the first place. Here are some important tips:

  1. Commit your code. This doesn't mean pushing your code every single time to Github, but just creating versions of your code, so it's possible to revert in case you land in hot mess. Every time you write something worth a commit, fire up your console, and while in your directory, type git add . , and git commit -m "message".
  2. Push your code to Github, at least twice a day.
  3. When you push, make sure all of your team members pull and work on updated code.
  4. Push to heroku, when you feel that your app is somewhat ready to be used by a customer

Please checkin with a TA regarding your Project progress by the end of the day. This is just to help you keep in track as you steer forward in your projects.