Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
* Make the app create tables on first run
* Ignore the app configs with Git
  • Loading branch information
tdemin committed Jun 2, 2019
1 parent be69464 commit 8b03680
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -4,6 +4,9 @@
# VSCode settings
.vscode

# App settings
config.json

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
1 change: 1 addition & 0 deletions project_amber/app.py
Expand Up @@ -6,6 +6,7 @@
app = Flask(__name__)
app.config["SQLALCHEMY_DATABASE_URI"] = config["database"]
db = SQLAlchemy(app)
db.create_all() # create all tables on first run

@app.route("/")
def hello():
Expand Down

0 comments on commit 8b03680

Please sign in to comment.