Add .env in readme

This commit is contained in:
ljf 2021-02-15 04:41:39 +01:00
parent 0932684afb
commit beeafac510

View file

@ -20,6 +20,29 @@ cd donate
python3 -m venv venv python3 -m venv venv
source venv/bin/activate source venv/bin/activate
pip3 install requirements.txt pip3 install requirements.txt
```
Create a .env file with :
```
PORT=8000
DEBUG=True
PROJECT_NAME=YunoHost
DOMAIN=http://localhost:8000
STATIC_DIR=assets
# Stripe keys
STRIPE_PUBLISHABLE_KEY=pk_test_gOgGjacs9YfvDJY03BRZ576O
STRIPE_SECRET_KEY=TO_REPLACE_BY_THE_GOOD_VALUE
# Stripe subscription data
ONE_TIME_EUR_DONATION=price_1IKuPVE7vOmTpJBiYMq7ztLH
RECURING_EUR_DONATION=price_1IKumjE7vOmTpJBikyqS2NqD
ONE_TIME_USD_DONATION=price_1IKuQfE7vOmTpJBi0A3nRGCJ
RECURING_USD_DONATION=price_1IKumAE7vOmTpJBiO4CEfa3Q
```
```
export FLASK_APP=server.py export FLASK_APP=server.py
python3 -m flask run --port=8000 python3 -m flask run --port=8000
``` ```