Problems deploying to Heroku with ember-rails

I’m using ember rails on one of my projects. Its a great way to build a ember.js based application with a Rails back-end. 

This morning I was trying to deploy to my efforts to Heroku but was running into the following error message:

Running: rake assets:precompile
rake aborted!
couldn’t find file ‘handlebars’
(in /tmp/build_ygdi06vxs1tz/app/assets/javascripts/application.js:15)
/tmp/build_ygdi06vxs1tz/vendor/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/context.rb:102:in `resolve’

 

Turns out the problem is because I hadn’t specified the ember variant. So if you run into something similar  make sure that your development.rb file contains:

config.ember.variant = :development

And your production.rb files contains:

config.ember.variant = :production

 

Problem solved

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s