|
|
2 years ago | |
|---|---|---|
| .. | ||
| scripts | 2 years ago | |
| tests | 2 years ago | |
| .env.example | 2 years ago | |
| .gitignore | 3 years ago | |
| README.md | 2 years ago | |
| __init__.py | 2 years ago | |
| dockerfile | 2 years ago | |
| main.py | 2 years ago | |
| requirements.txt | 2 years ago | |
| wsgi.py | 2 years ago | |
Code to run backtivisda script in the server
images_manipulator and all its dependencies
(version 0.0.2)Install requirements.txt
pip install -r requirements.txt
Create .env file with:
SECRET_KEYUSERS : the list of the authenticated usersexport FLASK_APP=main;flask run --port 4000 --debugger --reload
Script scripts/create_token.py
sudo docker build -t aktivisdaserver:latest .
sudo docker run -p 4000:4000 -t aktivisdaserver:latest
Add to your nginx conf:
client_max_body_size 10M;
pytest is required
pytest