|
|
0. Packages needed: `python3 python3-venv python3-dev` and maybe `libmysqlclient-dev`
|
|
|
1. Create domain: xbs.<your_domainname>
|
|
|
2. Create user: `adduser xbs`
|
|
|
3. Create database:
|
... | ... | @@ -8,12 +9,19 @@ flush privileges; |
|
|
```
|
|
|
4. Prepare Django (as user xbs):
|
|
|
- `git clone https://gitlab.pollet-computer.de/polly/xibo-booking-system.git`
|
|
|
- choose db driver in requirements.txt
|
|
|
- configure database in settings.py
|
|
|
- choose driver in requirements.txt
|
|
|
```
|
|
|
python3 -m venv venv
|
|
|
source venv/bin/activate
|
|
|
pip install -r xibo-booking-system/requirements.txt
|
|
|
pushd xibo-booking-system/src
|
|
|
python3 manage.py makemigrations booking_system
|
|
|
python3 manage.py migrate
|
|
|
python3 manage.py createsuperuser
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
TODO: put all this in container |
|
|
\ No newline at end of file |
|
|
|
|
|
TODO: put all this in a container |
|
|
\ No newline at end of file |