Output of RAILS_ENV

Added by Jo Xay 6 months ago

In case someone will need this information.
Trying to output RAILS_ENV in Redmine root directory with command:

RAILS_ENV=production script/about

but getting error:
script/about: No such file or directory

Solution is to create symbolic link:

ln -s ./bin ./script

This is because in Rails 4 "script" directory has been moved to "bin" (C, Kirti Thorat)