Open CarlosNZ opened 1 year ago
Adding to this, we should also allow a few other testing related things to be enabled in Docker instance via environmental variables. I'm thinking:
Just thinking of ways to improve our ability to test things in a build rather than just in dev. Ideally the automated test suite could be run in a build environment too.
Currently if you try to run the scripts such as
yarn migrate
oryarn backup
, the server complains about missingts-node
, which makes sense since the JS build doesn't need it. However it is possible to run them by writing a long-winded command into the build folder and running the actual .js file usingnode
.It would be good if this was a bit easier.
Suggestion: make a common "scripts" file for parsing these yarn commands -- if in development, run the script as it does currently. But in production, run a different version of the command that calls the compiled '.js' verison of the script.
I'm thinking this would be good for:
yarn migrate
yarn backup
yarn cleanup
(Pending, not indevelop
yet)It might also be good if we could run
yarn release
from the server, so we could run builds directly from the server, but that would require a bit more work.