I have this RoR app that calls to RAILS_ROOT.
When running it using rails server (or when checking with ./script/console) the value contains the app’s root.
When deploying and running it with Heroku, however (or when checking with heroku console), the returned path is ‘/app’.
Why’s that?
Thanks
Because on heroku your app is in the
/appfolder (from the root/).It is NOT the app folder of your application, which is
/app/app.The file structure is:
You can make an experiment.
Run heroku console and discover the file structure.