I've been trying to deploy the
For now, I've tried the following:
- Running the Dockerfile locally
- Run all commands from Dockerfile locally -
bundle install
,npm install
,rake build:all
andrails server -b 0.0.0.0 -e production
- Deploy the app to production on cloud66 (which runs the default Dockerfile)
All 3 have the same issue. Don't see any errors in Rails logs as well.
Can anyone help please?
CodePudding user response:
Turns out I missed RAILS_SERVE_STATIC_FILES
flag as mentioned here. Not sure why it needs to be added explicitly, but it worked after I added it!