- Install python 3.4 or newer and git
- Clone the Github repository
git clone https://github.com/bp-flugsimulator/server.git
- Run the deploy command, which will setup the server and output a zip file with all relevant files:
cd server python manage.py deploy
- Unzip the resulting file to the desired installation directory (the cloned repository can be deleted at this point):
- On Linux:
mkdir /home/fsim-user/fsim-master unzip ../server.zip /home/fsim-user/fsim-master/
- On Windows use the Windows Explorer.
Es bietet sich an, die Abhängigkeiten in ein virtualenv zu installieren, sodass sie unabhängig geupdatet werden können:
virtualenv3 venv
source venv/bin/activate
python3 install.py
npm install
python3 manage.py migrate
Der Server kann dann über python3 manage.py runserver
gestartet werden.