Commit 65d79ff9 authored by Vladislav Rykov's avatar Vladislav Rykov
Browse files

improved preset

parent fa1ce97e
......@@ -2,9 +2,16 @@ pip3 install virtualenv
python3 -m virtualenv env
source env/bin/activate
sudo apt-get install libpq-dev
sudo apt-get install -y postgresql postgresql-contrib
sudo apt-get install -y libpq-dev
pip install -r requirements.txt
pip install -r app/requirements.txt
sudo -u postgres psql -c "CREATE USER ${USER} WITH PASSWORD 'dev';"
sudo -u postgres psql -c "CREATE DATABASE iotserver WITH OWNER=${USER};"
psql -d iotserver -f db.sql
mkdir app/app/data
export FLASK_APP=run.py
export FLASK_ENV=production
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment