30 lines
898 B
Markdown
30 lines
898 B
Markdown
FLowers
|
|
-------
|
|
|
|
The current code base is designed to run undert a waitress server as a backend to apache
|
|
The app should be called as http:// ... /flowers (so as a subfolder of the domain)
|
|
|
|
to install the env:
|
|
python3 -m venv venv
|
|
source venv/bin/activate
|
|
pip install flask waitress fernet pymysql pytz
|
|
|
|
|
|
install apache and activate proxy:
|
|
a2enmod proxy
|
|
a2enmod proxy_http
|
|
|
|
and put the following in the site...conf file:
|
|
ProxyPass "/flowers" "http://127.0.0.1:5012/flowers"
|
|
ProxyPassReverse "/flowers" "http://127.0.0.1:5012/flowers"
|
|
|
|
|
|
|
|
# as root in mysql
|
|
create database Flowers;
|
|
grant create,select,update,insert,grant option on Flowers.* to flower@localhost identified by '608f0b988db4a96066af7dd8870de96c';
|
|
grant create user,reload on *.* to flower@localhost;
|
|
flush privileges;
|
|
|
|
start waitress:
|
|
waitress-serve --threads=6 --host=127.0.0.1 --port=5012 --call flowers:create_app |