I found the documentation on the asset_sync github page that says when you run command:
heroku labs:enable user-env-compile --app <appname>
In order for it to work.
Heroku also has AssetSync https://devcenter.heroku.com/articles/cdn-asset-host-rails31#configuration documentation
It's so nice to only be compiling assets once now
This worked for me as well when I wanted to get a direct deploy to Heroku. I use the i18n-js https://github.com/fnando/i18n-js gem which requires config.assets.initialize_on_precompile = true
in application.rb.
So, this command allowed me to not have to precompile assets at all before deployment. I really help Heroku keeps this around.
Also we called heroku labs:enable user-env-compile -a <appname>
, not user_env_compile.
Edited:
For working this issue, just update your heroku toolbelt
, please refer below mentioned link
https://blog.heroku.com/archives/2012/10/15/upgrading-to-the-heroku-toolbelt