Add scripts

This commit is contained in:
Eragon 2019-01-02 19:58:51 +01:00
parent fd2bcec6c4
commit a061ed0d42
No known key found for this signature in database
GPG Key ID: B2B1BF4DA61BBB85
5 changed files with 19 additions and 0 deletions

1
.env Normal file
View File

@ -0,0 +1 @@
FLASK_APP=V5.py

11
.gitignore vendored
View File

@ -5,11 +5,22 @@ app/__pycache__/
migrations/
# Virtual environment
venv/
.venv/
Pipfile
Pipfile.lock
# Sublime Text files
*.sublime-project
*.sublime-workspace
# Deployment files
# uWSGI configuration file
uwsgi.ini
# Main script: mounts Flask app on uWSGI workers (serviced by systemd)
run.sh
# Update script to pull repository from SSH
update.sh

3
scripts/init.sh Normal file
View File

@ -0,0 +1,3 @@
flask db init
flask db migrate -m "initialisation"
flask db upgrade

2
scripts/migrate.sh Normal file
View File

@ -0,0 +1,2 @@
flask db migrate -m $1
flask db upgrade

2
scripts/run_dev.sh Normal file
View File

@ -0,0 +1,2 @@
FLASK_DEBUG=1
flask run