2021-05-18 19:00:28 -04:00
|
|
|
### Steps to Deploy
|
2021-06-06 21:56:07 -04:00
|
|
|
- move contents of static/ to /srv/www-csc-links/
|
|
|
|
- create a `.env` file in server/ with following contents:
|
2021-05-18 19:00:28 -04:00
|
|
|
```
|
|
|
|
PASSWORD=...
|
|
|
|
PORT=...
|
|
|
|
```
|
2021-06-06 21:56:07 -04:00
|
|
|
- Install the pip dependencies. One possible way to do so is to run the following in server/:
|
2021-05-18 19:00:28 -04:00
|
|
|
```
|
|
|
|
python3 -m venv venv
|
|
|
|
source venv/bin/activate
|
|
|
|
pip install -r requirements.txt
|
|
|
|
```
|
2021-06-06 21:56:07 -04:00
|
|
|
- run server.py in server/ (with the pip dependencies installed)
|
2021-05-18 19:00:28 -04:00
|
|
|
- edit the `.htaccess` file in /srv/www-csc-links/ to point to the running python application
|