Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document how to deploy survey_display locally #10

Open
ryantanaka opened this issue Sep 20, 2017 · 6 comments
Open

document how to deploy survey_display locally #10

ryantanaka opened this issue Sep 20, 2017 · 6 comments

Comments

@ryantanaka
Copy link

document how to deploy survey_display locally

@carlosparadis
Copy link
Member

Remember to include the sql_dump query to facilitate the process of deploying locally. In the future, it would be best to have a vagrant machine, but we go with what we have for now.

@carlosparadis
Copy link
Member

carlosparadis commented Sep 21, 2017

You forgot to point here you finished this part on the wiki.

I think this should actually become a pull request for a readme file but I can do that. I actually wanted to ask you something. Whats with the insane number of dependencies?

https://repo.continuum.io/pkgs/free/linux-64/click-6.7-py36_0.tar.bz2
https://repo.continuum.io/pkgs/free/linux-64/flask-0.12.2-py36_0.tar.bz2
https://repo.continuum.io/pkgs/free/linux-64/flask-cors-3.0.3-py36_0.tar.bz2
https://repo.continuum.io/pkgs/free/linux-64/itsdangerous-0.24-py36_0.tar.bz2
https://repo.continuum.io/pkgs/free/linux-64/jinja2-2.9.6-py36_0.tar.bz2
https://repo.continuum.io/pkgs/free/linux-64/libpq-9.5.4-0.tar.bz2
https://repo.continuum.io/pkgs/free/linux-64/markupsafe-1.0-py36_0.tar.bz2
https://repo.continuum.io/pkgs/free/linux-64/openssl-1.0.2l-0.tar.bz2
https://repo.continuum.io/pkgs/free/linux-64/pip-9.0.1-py36_1.tar.bz2
https://repo.continuum.io/pkgs/free/linux-64/psycopg2-2.7.1-py36_0.tar.bz2
https://repo.continuum.io/pkgs/free/linux-64/python-3.6.2-0.tar.bz2
https://repo.continuum.io/pkgs/free/linux-64/readline-6.2-2.tar.bz2
https://repo.continuum.io/pkgs/free/linux-64/setuptools-27.2.0-py36_0.tar.bz2
https://repo.continuum.io/pkgs/free/linux-64/six-1.10.0-py36_0.tar.bz2
https://repo.continuum.io/pkgs/free/linux-64/sqlite-3.13.0-0.tar.bz2
https://repo.continuum.io/pkgs/free/linux-64/tk-8.5.18-0.tar.bz2
https://repo.continuum.io/pkgs/free/linux-64/werkzeug-0.12.2-py36_0.tar.bz2
https://repo.continuum.io/pkgs/free/linux-64/wheel-0.29.0-py36_0.tar.bz2
https://repo.continuum.io/pkgs/free/linux-64/xz-5.2.3-0.tar.bz2
https://repo.continuum.io/pkgs/free/linux-64/zlib-1.2.11-0.tar.bz2

This is the one on survey_admin (see this issue for more details). Compared to our survey_display:

pip3 install flask
pip3 install Flask-SQLAlchemy
pip3 install flask-login
pip3 install flask-limiter
pip3 install flask_wtf
pip3 install passlib
pip3 install psycopg2

Most of which are all from flask. Do we really need that insane amount?

Also, could you do a quick search on what is the best way to deploy locally projects that require a database? I wonder if there is something better than creating dumps with pg_dump.

@ryantanaka
Copy link
Author

ryantanaka commented Sep 21, 2017

I'm not finished with it yet, i saved it when i had to restart my computer today. I'll finish it up tomorrow and post in the issues section when its done. There are still a few small details at the end that are missing/incomplete. Originally I wrote the guide assuming that we would use the master branch, but really we are working with the deployment branch and startup between the two varies ever so slightly. (master has a shell script, and deployment doesn't; also the directory structure and file names are slightly different)

As for the dependencies, I think you're right. Most of that is probably not necessary, but I can't say for sure. Tomorrow I'll try running the program with just the ones you mentioned above and see if it works.

@ryantanaka
Copy link
Author

@carlosviansi okay the guide is finished here

when you try to run it, let me know where you get stuck if it doesn't work. also I'll get back to figuring out exactly which dependencies we need later since this is at normal priority

@carlosparadis
Copy link
Member

Sounds like a plan. ball is on me now.

Thanks!

@carlosparadis
Copy link
Member

I am changing this to low priority, since re-deployment has not been a big deal since then (we just had everyone in the group own a separate project). Will be re-visited later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants