Skip to content

Commit

Permalink
Change to support MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
sah0017 committed Nov 22, 2024
1 parent e6b76fa commit bf9b10a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion BackEndFlask/.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ DEMO_ADMIN_PASSWORD=demo_admin
DEMO_TA_INSTRUCTOR_PASSWORD=demo_ta
DEMO_STUDENT_PASSWORD=demo_student
SECRET_KEY=Thisissupposedtobesecret!
MYSQL_HOST=rubricapp-db.c1db7ief4oer.us-east-2.rds.amazonaws.com:3306
MYSQL_HOST=localhost:3306
MYSQL_USER=rubricapp_admin
MYSQL_PASSWORD=ThisReallyNeedsToBeASecret1!
MYSQL_DATABASE=rubricapp
3 changes: 2 additions & 1 deletion BackEndFlask/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ Functions/test.py
Models/hidden.py
dump.rdb
BackEndFlaskVenv
Test
Test
.env
8 changes: 4 additions & 4 deletions BackEndFlask/env/.env.production
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Contains the variables for production enviroment which uses mysql
# while the same the urls are meant to override incorrect connection paths meant to serve as examples

MYSQL_HOST = 'skillbuilder-db.c1db7ief4oer.us-east-2.rds.amazonaws.com:3306'
MYSQL_HOST = 'rubricapp-db.c1db7ief4oer.us-east-2.rds.amazonaws.com:3306'
MYSQL_PASSWORD = 'ThisReallyNeedsToBeASecret1!'
MYSQL_USER = 'rubricapp_admin'
MYSQL_DATABASE = 'rubricapp_admin'
WIN_LIN = 'mysql+pymysql://rubricapp_admin:${MYSQL_PASSWORD}@rubricapp-db.c1db7ief4oer.us-east-2.rds.amazonaws.com:3306/rubricapp'
MAC = 'mysql+pymysql://rubricapp_admin:${MYSQL_PASSWORD}@rubricapp-db.c1db7ief4oer.us-east-2.rds.amazonaws.com:3306/rubricapp'
MYSQL_DATABASE = 'rubricapp'
WIN_LIN = 'mysql+pymysql://rubricapp_admin:{MYSQL_PASSWORD}@rubricapp-db.c1db7ief4oer.us-east-2.rds.amazonaws.com:3306/rubricapp'
MAC = 'mysql+pymysql://rubricapp_admin:{MYSQL_PASSWORD}@rubricapp-db.c1db7ief4oer.us-east-2.rds.amazonaws.com:3306/rubricapp'


#-----------------------------------------------------------------------------#
Expand Down

0 comments on commit bf9b10a

Please sign in to comment.