casa icon indicating copy to clipboard operation
casa copied to clipboard

Bug: Docker/build creates a server without application.js

Open ChaelCodes opened this issue 2 years ago • 2 comments

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. error

The containers all report successful completion, and are running. docker ps log - 3 containers running

I'm on a recent commit to main. git log showing commit from 10/9

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
    • Naviagte to localhost:3000

QA Login Details:

Link to QA site

Login Emails:

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.

ChaelCodes avatar Oct 10 '22 18:10 ChaelCodes

Hmmm that's not great. @FireLemons maybe we can look at this during office hours How are the specs passing in this case?

compwron avatar Oct 10 '22 19:10 compwron

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

ChaelCodes avatar Oct 11 '22 13:10 ChaelCodes

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?

AlysonBasilio avatar Oct 22 '22 15:10 AlysonBasilio