-
Notifications
You must be signed in to change notification settings - Fork 1
Home
This is the backend for timetable selector.
docker
docker-compose
to install docker, take a look on the official website and follow the Get docker
section to install it. If you're using windows, make sure to have the wsl
installed.
In case you're using linux, after installing docker check the Manage Docker as a non-root user
, so you can use docker without the sudo
command.
You can start developing by building the local server with docker:
docker-compose build .
In case you have already build the server before and want to build it again, be sure to delete the folder in mysql/data
. You can do this by running sudo rm -r mysql/data/
. To make your life easier, you can simply run the build_dev.sh
script: sudo ./build_dev.sh
.
The sudo permission is nevessary to delete the
mysql/data
folder.
docker-compose up
As well as the build, the running command can also be executed with the run_dev.sh
script by executing: ./run_dev.sh
.
WARNING: it's likely that the first execution of
docker-compose up
after building won't work, since django doesn't wait for the database being populated to executed. Thus, if that's your ccase, execute it again.