Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 489 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 489 Bytes

Development

Prepare

cd /home/pi
git clone git@github.com:phamviet/mypi.git
cd mypi
virtualenv venv
. venv/bin/activate
python setup.py install

Run as service

sudo cp scripts/mypi-dev.service /lib/systemd/system/
sudo systemctl enable mypi-dev
sudo systemctl mypi-dev start

Single command

FLASK_APP=mypi/core.py FLASK_DEBUG=1 flask run --host=0.0.0.0 --with-threads 

Credits