Skip to content

Commit

Permalink
Merge 68eb1e4 into efaf1b9
Browse files Browse the repository at this point in the history
  • Loading branch information
dsummersl committed Aug 31, 2016
2 parents efaf1b9 + 68eb1e4 commit 251c97f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ A successful deployment to Heroku requires a few setup steps:
heroku config:set SECRET_TOKEN=the_token_you_generated
```

3. [Precompile your assets](https://devcenter.heroku.com/articles/rails3x-asset-pipeline-cedar)
3. [Obtain a Google API Key](https://developers.google.com/maps/documentation/javascript/get-api-key).

4. Set the Google API key:

```
heroku config:set GOOGLE_MAP_KEY=the_token_you_obtained
```

5. [Precompile your assets](https://devcenter.heroku.com/articles/rails3x-asset-pipeline-cedar)

```
RAILS_ENV=production bundle exec rake assets:precompile
Expand All @@ -60,9 +68,9 @@ A successful deployment to Heroku requires a few setup steps:
git commit -m "vendor compiled assets"
```

4. Add a production database to config/database.yml
6. Add a production database to config/database.yml

5. Seed the production db:
7. Seed the production db:

`heroku run bundle exec rake db:seed`

Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/ HTML5 shim, for IE6-8 support of HTML5 elements
/[if lt IE 9]
= javascript_include_tag "//html5shim.googlecode.com/svn/trunk/html5.js"
= javascript_include_tag "//maps.google.com/maps/api/js?sensor=false&language=#{I18n.locale}"
= javascript_include_tag "//maps.google.com/maps/api/js?sensor=false&language=#{I18n.locale}&key=#{ENV['GOOGLE_MAP_KEY']}"
= javascript_include_tag "//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"
= javascript_include_tag "//ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"
= javascript_include_tag "application"
Expand Down

0 comments on commit 251c97f

Please sign in to comment.