File tree Expand file tree Collapse file tree 5 files changed +13
-10
lines changed Expand file tree Collapse file tree 5 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -40,24 +40,21 @@ Project "***Minería de datos para la mejora del mantenimiento y disponibilidad
40
40
export SECRET_KEY=<app secret key>
41
41
export EMAIL_AC=<email>
42
42
export EMAIL_PASS=<email-password>
43
+ export FLASK_ENV=development #development or production
44
+ export FLASK_DEBUG=1 #0 is debug=False, 1 is debug=True
43
45
LIBFOLDER=/absolute/path/to/UBUMLaaS
44
46
```
45
47
6. With the conda environment UBUMLaaS, execute the script to export environment variables when activate conda env.
46
48
```bash
47
- $ bash env_vars_to_conda.sh
49
+ $ source env_vars_to_conda.sh
48
50
```
49
- 7. Deactivate and activate conda environment to take effect.
50
- ```bash
51
- $ conda deactivate
52
- $ conda activate UBUMLaaS
53
- ```
54
- 8. Create database
51
+ 7. Create database
55
52
```bash
56
53
$ mv data_base.sqlite ubumlaas/data.sqlite
57
54
```
58
55
*Opt:*
59
56
Download a database and put it in ./ubumlaas/
60
- 9 . Install Redis-Server
57
+ 8 . Install Redis-Server
61
58
```bash
62
59
$ sudo apt install redis-server
63
60
$ sudo service redis-server start
Original file line number Diff line number Diff line change 4
4
Main, run application.
5
5
"""
6
6
if __name__ == "__main__" :
7
- create_app ("main_app" ).run (debug = True )
7
+ create_app ("main_app" ).run ()
Original file line number Diff line number Diff line change 3
3
export SECRET_KEY=< app secret key>
4
4
export EMAIL_AC=< email>
5
5
export EMAIL_PASS=< email-password>
6
+ export FLASK_ENV=development # development or production
7
+ export FLASK_DEBUG=1 # 0 is debug=False, 1 is debug=True
6
8
LIBFOLDER=/absolute/path/to/UBUMLaaS
7
9
8
10
export WEKA_HOME=$LIBFOLDER /lib/wekafiles/packages/
Original file line number Diff line number Diff line change
1
+ source unset_env_vars.sh
2
+ source env_variables.sh
1
3
mkdir -p $CONDA_PREFIX /etc/conda/activate.d/
2
4
mkdir -p $CONDA_PREFIX /etc/conda/deactivate.d/
3
5
cp env_variables.sh $CONDA_PREFIX /etc/conda/activate.d/
Original file line number Diff line number Diff line change @@ -2,4 +2,6 @@ unset SECRET_KEY
2
2
unset EMAIL_AC
3
3
unset EMAIL_PASS
4
4
unset WEKA_HOME
5
- unset MEKA_CLASSPATH
5
+ unset MEKA_CLASSPATH
6
+ unset FLASK_DEBUG
7
+ unset FLASK_ENV
You can’t perform that action at this time.
0 commit comments