-
-
Save halsk/9762166 to your computer and use it in GitHub Desktop.
Locomotive Engine を Heroku で動かすまで ref: http://qiita.com/hal_sk/items/0512a4a9cb215fb016f5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| heroku config:add HEROKU_API_KEY=<YOUR HEROKU API KEY> | |
| heroku config:add HEROKU_APP_NAME=<YOUR APP NAME> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ruby '2.0.0' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| production: | |
| sessions: | |
| default: | |
| uri: <%= ENV['MONGOHQ_URL'] %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| config.action_mailer.delivery_method = :smtp | |
| config.action_mailer.smtp_settings = { | |
| :address => 'smtp.sendgrid.net', | |
| :port => 25, | |
| :authentication => :plain, | |
| :user_name => ENV['SENDGRID_USERNAME'], | |
| :password => ENV['SENDGRID_PASSWORD'], | |
| :domain => ENV['SENDGRID_DOMAIN'] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| config.hosting = { | |
| :target => :heroku, | |
| :api_key => ENV['HEROKU_API_KEY'], | |
| :app_name => ENV['HEROKU_APP_NAME'] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module YourApplication | |
| class Application < Rails::Application | |
| ... | |
| config.assets.initialize_on_precompile = false | |
| ... | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bundle exec rake assets:precompile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git add . | |
| git commit -am "launch it" | |
| git push heroku master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gem 'locomotive-heroku', '~> 0.1.0', :require => 'locomotive/heroku' | |
| gem 'thin', :group => 'production' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| development: | |
| sessions: | |
| default: | |
| database: mycms_dev | |
| hosts: | |
| - localhost:27017 | |
| options: | |
| identity_map_enabled: true | |
| test: | |
| sessions: | |
| default: | |
| database: mycms_test | |
| hosts: | |
| - localhost:27017 | |
| options: | |
| identity_map_enabled: true | |
| production: | |
| sessions: | |
| default: | |
| uri: <%= ENV['MONGOHQ_URL'] %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment