casa
casa copied to clipboard
Bug: Docker/build creates a server without application.js
Impacted User Types
- app contributors using docker
Environment
development docker setup
Current Behavior
When I run docker/build
in GitHub codespaces, or an Ubuntu 18.0.1 WSL environment, the script runs successfully, but navigating to the server at localhost:3000 renders a The asset "application.js" is not present in the asset pipeline.
error.
The containers all report successful completion, and are running.
I'm on a recent commit to main.
The logs report that application.js was succefully built. https://gist.github.com/ChaelCodes/47e434ad0534fcedb04a4adb8f8bf9b8#file-build-log-L763 The tests show it missing though.
Expected Behavior
The application is running and accessible at localhost:3000.
How to Replicate
-
- clone the repo
-
- Run
docker/build
- Run
-
- Naviagte to localhost:3000
QA Login Details:
Login Emails:
- [email protected] view site as a volunteer
- [email protected] view site as a supervisor
- [email protected] view site as an admin
password for all users: 12345678
Questions? Join Slack!
We highly recommend that you join us in slack https://rubyforgood.herokuapp.com/ #casa channel to ask questions quickly and hear about office hours (currently Tuesday 6-8pm Pacific), stakeholder news, and upcoming new issues.
Hmmm that's not great. @FireLemons maybe we can look at this during office hours How are the specs passing in this case?
Hmmm that's not great. @FireLemons maybe we can look at this during office hours How are the specs passing in this case?
All the system specs have the same issue. https://gist.github.com/ChaelCodes/47e434ad0534fcedb04a4adb8f8bf9b8#file-test-log-L1346-L1350
Hey, @ChaelCodes @compwron how are you? I was setting up my local environment with docker and crossed this issue. I resolved this by running docker-compose run --rm web yarn build
and docker-compose run --rm web yarn build:css
before running docker-compose up -d
.
I would be glad to work on this issue, but I'm not sure if we have to update the docs or if we have to improve docker execution to include asset building in the dev environment. What do you think?