Skip to content

Instantly share code, notes, and snippets.

@pjbelo
Last active September 26, 2018 12:36
Show Gist options
  • Save pjbelo/eca79da23fd1d646db45cd908c183068 to your computer and use it in GitHub Desktop.
Save pjbelo/eca79da23fd1d646db45cd908c183068 to your computer and use it in GitHub Desktop.
[Rails] Compiling assets locally [Heroku]

Compiling assets locally

If a public/assets/manifest.yml is detected in your app, Heroku will assume you are handling asset compilation yourself and will not attempt to compile your assets. To compile your assets locally, run the assets:precompile task locally on your app. Make sure to use the production environment so that the production version of your assets are generated.

RAILS_ENV=production bundle exec rake assets:precompile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment