Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vladislav Rykov
THSO.server
Commits
65d79ff9
Commit
65d79ff9
authored
May 08, 2020
by
Vladislav Rykov
Browse files
improved preset
parent
fa1ce97e
Changes
1
Hide whitespace changes
Inline
Side-by-side
preset.sh
View file @
65d79ff9
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment