-
Notifications
You must be signed in to change notification settings - Fork 2
Deploy Locally
Carlos Paradis edited this page Sep 28, 2017
·
1 revision
* pip3 install flask
* pip3 install Flask-SQLAlchemy
* pip3 install flask-login
* pip3 install flask-limiter
* config.json needs to exist in `survey_admin` folder. File currently resides on the server. I added it to the `.gitignore` just to be safe on commit 0fd7ade and 7e4f4eb.
* pip3 install flask_wtf
* pip3 install passlib
* pip3 install psycopg2
Besides the tables pg_dump can generate, the following roles need to be created in a local database:
- eileen
- sepgroup_nonmsg
- webuser
- Also needs to have permissions
LOGIN
andWITH PASSWORD
, where the password is the one available inconfig.json
.
- Also needs to have permissions
Remember only the full dump will work to access since the login/pass is also stored in the database.
The files survey_admin/config.json
and survey_admin/ubuntuStation/database.py
needs to be downloaded directly from the server on /var/www/ubuntuStation/config.json
and /var/www/ubuntuStation/database.py
respectively.
python3 run.py
Opens the app on localhost on port 8080 to be accessed on the web-browser.
- See D. Shawley response on Stackoverflow.