-
Notifications
You must be signed in to change notification settings - Fork 1
Dev Env Performance Tips
Tiago Amaro edited this page Sep 1, 2016
·
2 revisions
This isn't s a small project. It's normal that you face a slow development environment (due to class reloading, assets, etc).
If you're facing slow asset compiling, you can precompile all assets on dev environment, setting up:
- the
DEVELOPMENT_ASSETS_COMPRESS
env variable to "true" - the
DEVELOPMENT_ASSETS_DEBUG
env variable to "false" - and running
RAILS_ENV=development bundle exec rake assets:precompile
command
Remember, if you run bundle exec rake assets:precompile
without specifying the RAILS_ENV
variable, it'll run against Rails' production environment, causing errors on the asset compilation process.