- Create an account. We reccomend using a personal account instead of an organization to deploy your app because personal accounts have free dynos.
- Enable GitHub integration under the Deploy tab.
- Connect your repo to Heroku and hit Deploy Branch.
- Enable automatic deploys to allow future commits to update on Heroku without manual intervention.
- Click on the More button on Heroku and open up the console.
- Type in "bash" and run these commands:
rake db:seed
rake db:migrate
- Go to your Heroku app website. Your app should be now be running.
- When you first try to use Google Sign-In, you will most likely get a message saying "Error 400: redirect_uri_mismatch. You will need to whitelist your Heroku app domain and set a redirect URI.
- Create a Google Developers account.
- Setup a new project and obtain an API key. You will need to update your app to use this key.
- Add your Heroku app domain to the list of authorized domains.
- Follow the instructions here to set a redirect URI.
- Your app should work with Google Sign-In after completing these steps. If you are having issues, try using another browser, or check that your browser has cookies enabled. We recommend you to use Google Chrome.
- Clone this repository to your workspace.
- Navigate to the project directory and run:
bundle install --without production
- If you are getting a message saying "Your Ruby version is 2.x.x, but your Gemfile specified 2.x.x," you will need change your RVM version.
- Run
rails s
and open the app in your browser. - You should see a bunch of red text. Copy the command on the page and run it to do a database migration.
- Try running the app again.
- Learn Ruby on Rails before diving into the project. Do your assigned homework early because they are helpful!
- Run migrations with
rake db:migrate
whenever you alter your database. - Learn how to write and run tests.