Browse Source

Add scripts

master
Eragon 1 year ago
parent
commit
a061ed0d42
Signed by: Eragon <sam.vzh@orange.fr> GPG Key ID: B2B1BF4DA61BBB85
5 changed files with 19 additions and 0 deletions
  1. +1
    -0
      .env
  2. +11
    -0
      .gitignore
  3. +3
    -0
      scripts/init.sh
  4. +2
    -0
      scripts/migrate.sh
  5. +2
    -0
      scripts/run_dev.sh

+ 1
- 0
.env View File

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

+ 11
- 0
.gitignore 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
- 0
scripts/init.sh View File

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

+ 2
- 0
scripts/migrate.sh View File

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

+ 2
- 0
scripts/run_dev.sh View File

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

Loading…
Cancel
Save