Deploying Ember On Rails To Heroku
🗓 Thu 20 Jun 2013
For ember-rails, you need to tell Rails which variant of ember to use. This is done in your application config.
# config/application.rb Sample::Application.configure do # ember-rails requires this setting in the Rails application. config.ember.variant = :production end
Heroku doesn't play nice with the default Rails asset pipeline settings. You'll need to configure your Rails app to serve up the assets in production.
# config/environments/production.rb Sample::Application.configure do # Defaults to false. Heroku needs to serve the assets, # as there is no file system in Heroku. config.serve_static_assets = true end
config/environments/development.rb you can set ember to use the development variant.
# config/environments/development.rb Sample::Application.configure do config.ember.variant = :development end
And with that, deployment is as easy as
git push heroku master.