mirror of
https://git.ari.lt/ari.lt/ari.lt.git
synced 2025-09-17 21:34:50 +02:00
Ari-web source code https://ari.lt/
https://ari.lt/
|
||
---|---|---|
src | ||
.editorconfig | ||
.eslintrc.js | ||
.gitignore | ||
.prettierrc | ||
example.env | ||
LICENSE | ||
pyproject.toml | ||
README.md | ||
requirements.txt | ||
tox.ini |
Ari.lt
Arija A.'s personal website and services
Running
First compile WASM PoW:
cd src/static/js/wasm
./compile.sh
cd ../../../../
Then:
python3 -m venv venv
source venv/bin/activate
source .env # see example.env
pip install --upgrade -r requirements.txt
cd src
memcached -d
# If you remove migrations/:
# flask db init
# vim migrations/script.py.mako (add import flask_app)
# flask db migrate -m 'Initial migration'
flask db upgrade
# FOR FIRST TIME RUN: flask create-counter
flask run
For production use a WSGI server such as Gunicorn:
python3 -m venv venv
source venv/bin/activate
source .env # see example.env
pip install --upgrade -r requirements.txt
pip install --upgrade gunicorn
cd src
memcached -d
flask db upgrade
# FOR FIRST TIME RUN: flask create-counter
python3 -m gunicorn -b 127.0.0.1:12345 -w 4 app:app # ... Or whatever your configuration is