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
It would be nice to have some tests that the code is working. At a minimum, a script which sets up and deploys the server so we can check this runs without issues (also checks that dependencies are correct etc.).
I can almost write this script already, the main questions are:
how to autocreate a super user when prompted?
once we deploy, appropriate way in bash to check that it has worked, then shut it down elegantly (may need to start in a seperate process?)
I've put example below with comments indicating the steps I'm unsure of.
git clone https://github.com/ACRF-Image-X-Institute/scientific-method-app.git
cd scientific-method-app/
python3 -m venv venv # create virtual environementsource venv/bin/activate # activate environment
pip install -r requirements.txt # install requirements
python manage.py makemigrations # set up app as per readme
python3 manage.py migrate
python3 manage.py createsuperuser # here, we get prompted for text input; how to handle this automatically?
python3 manage.py runserver # how can we test this this worked properly, then shut it down elegaantly?
The text was updated successfully, but these errors were encountered:
It would be nice to have some tests that the code is working. At a minimum, a script which sets up and deploys the server so we can check this runs without issues (also checks that dependencies are correct etc.).
I can almost write this script already, the main questions are:
I've put example below with comments indicating the steps I'm unsure of.
The text was updated successfully, but these errors were encountered: