forked from BCStudentSoftwareDevTeam/bcsr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·27 lines (20 loc) · 773 Bytes
/
Copy pathsetup.sh
File metadata and controls
executable file
·27 lines (20 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
# Create a virtual machine virtual environment
if [ ! -d venv ]
then
python3 -m venv venv
fi
. venv/bin/activate
# upgrade pip
python3 -m pip install --upgrade pip #added python-m for pip installs (source setup overwrite for venv)
python3 -m pip install -r requirements.txt
# To generate a new requirements.txt file, run "pip freeze > requirements.txt"
echo
if [[ ! -e app/config/secret_config.yaml ]]; then
cp app/config/example_secret_config.yaml app/config/secret_config.yaml
echo "Remember to edit your mail settings and MySQL connection information in 'app/secret_config.yaml'"
echo
echo "If your database has not been set up, you will need to run database/reset_database.sh"
fi
export FLASK_ENV=development
export FLASK_RUN_PORT=8080