-
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.
⚠️ Warning : In case you have already build the server before and want to build it again, be sure to delete the folder inmysql/data
. You can do this by runningsudo rm -r mysql/data/
. To make your life easier, you can simply run thebuild_dev.sh
script:sudo ./build_dev.sh
. The sudo permission is necessary to delete themysql/data
folder.
You can start developing by building the local server with docker:
docker-compose build .
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 ofdocker-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.