You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to get a dev instance to start per the instructions at https://github.com/cardinalitypuzzles/cardboard/blob/main/dev-guide.md. I opted to run things manually rather than with Docker. For the most part, I think everything worked fine, but I did run into an issue with static resources failing to load correctly.
As far as I can tell, you need to either set DEBUG=true to enable the runserver command to serve resources on the fly, or else you need to run collectstatic to prepare the static files in advance before running the server. But .env.test doesn't set DEBUG, and there's no step to run collectstatic in the dev instructions.
It looks like the docker setup script runs collectstatic which covers it, but should .env.test go ahead and set DEBUG to true as well?
(For context, we on Ange Management are exploring other options for hunt dashboards for next year - may have a few more questions in the near future :))
The text was updated successfully, but these errors were encountered:
I see that setting DEBUG shows up later in the instructions under "Local .env file: credentials, API Tokens, configuration", though this comes after the "Local deployment" step, and the link between DEBUG and the static file failure wasn't super clear to me.
Thanks for the report! We should definitely fix this in the documentation (I think the DEBUG env variable was mentioned as missing by somebody internally as well).
We recommend setting DEBUG for any local development work.
I was trying to get a dev instance to start per the instructions at https://github.com/cardinalitypuzzles/cardboard/blob/main/dev-guide.md. I opted to run things manually rather than with Docker. For the most part, I think everything worked fine, but I did run into an issue with static resources failing to load correctly.
As far as I can tell, you need to either set DEBUG=true to enable the
runserver
command to serve resources on the fly, or else you need to runcollectstatic
to prepare the static files in advance before running the server. But .env.test doesn't set DEBUG, and there's no step to run collectstatic in the dev instructions.It looks like the docker setup script runs collectstatic which covers it, but should .env.test go ahead and set DEBUG to true as well?
(For context, we on Ange Management are exploring other options for hunt dashboards for next year - may have a few more questions in the near future :))
The text was updated successfully, but these errors were encountered: