Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile.Production report js or db error. Need to do rake assets:precompile separately inside docker #282

Closed
Tracked by #281
pengyin-shan opened this issue Dec 9, 2022 · 2 comments
Assignees

Comments

@pengyin-shan
Copy link

pengyin-shan commented Dec 9, 2022

RUN DATABASE_URL=nulldb://user:[email protected]/roadmap RAILS_ENV=production SECRET_KEY_BASE=change_me DEVISE_SECRET_KEY=pickasecuretoken bundle exec rake assets:precompile report following error only in 3.1.0:

Screenshot 2022-12-09 at 3 25 36 PM

Need to comment out this line and run rake assets:precompile separately in the docker

@pengyin-shan
Copy link
Author

pengyin-shan commented Dec 9, 2022

Noticed the same error occurred when adopting the same Dockerfile.Production to main code (V)4.0.1 WITHOUT database error reported in (JS compile still not work), but the current integration branch (i.e. v3.0.4) works well.

Assuming that JS is one error while 'database does not exist' is another error.

@pengyin-shan
Copy link
Author

Resolved by moving the bundle exec rails assets:precompile part to command in docker-compose.yml:

Screenshot 2023-01-10 at 11 53 30 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant