# by meanstackBasit compile the assets with any evnironment like this way. RAILS_ENV= <staging> || RAILS_ENV= <test> || || RAILS_ENV= <production> RAILS_ENV=production rails assets:precompile