Skip to content

Django Server, acting as the master

License

Notifications You must be signed in to change notification settings

bp-flugsimulator/server

Repository files navigation

Server

Updates Build Status Updates

Installation

  1. Install python 3.4 or newer and git
  2. Clone the Github repository
    git clone https://github.com/bp-flugsimulator/server.git
  3. Run the deploy command, which will setup the server and output a zip file with all relevant files:
    cd server
    python manage.py deploy
  4. 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.

Entwicklungsumgebung (intern)

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.