Skip to content

Commit

Permalink
added backend environmental variables
Browse files Browse the repository at this point in the history
  • Loading branch information
alesanchezr committed Sep 11, 2020
1 parent 809bebb commit 95e0540
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
12 changes: 12 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
# This file includes global variables that will be available inside your project
# 1. In the front end code you can access this variables like this: console.log(process.env.VARIABLE_NAME)
# 1. In the back end code you access the variable by importing os and then typing print(os.getEnv('VARIABLE_NAME'))

# Front-End Variables
BASENAME=/


# Back-End Variables
DB_CONNECTION_STRING=mysql+mysqlconnector://root@localhost/example
FLASK_APP_KEY="any key works"
FLASK_APP=src/main.py
FLASK_ENV=development
21 changes: 14 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 95e0540

Please sign in to comment.