You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
@dodeja, ENV["RAILS_ASSETS_PRECOMPILE"] isn't querying the Rails environment, you get that from Rails.env.
This is giving us a way to skip the routes just for the rake task with shell variables. i.e. So you can run RAILS_ASSETS_PRECOMPILE=true rake assets:precompile
f199557
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why would ENV be RAILS_ASSETS_PRECOMPILE? Shouldn't it be production or staging?
f199557
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dodeja, ENV["RAILS_ASSETS_PRECOMPILE"] isn't querying the Rails environment, you get that from Rails.env.
This is giving us a way to skip the routes just for the rake task with shell variables. i.e. So you can run
RAILS_ASSETS_PRECOMPILE=true rake assets:precompile
f199557
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does one set RAILS_ASSETS_PRECOMPILE during just the asset:precompile task?
f199557
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.