Last active
July 10, 2018 11:23
-
-
Save avigail-oron/835984deaafa3b71e99beb4eb333396d to your computer and use it in GitHub Desktop.
Aiakos server without docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//on a diff machine - install mysql, bind it to all addresses and create a user called 'aiakos' with all priveleges. | |
//prerequisites: python 3.6, pip | |
//also, need to have mysql clinet instlled: | |
sudo apt-get install libmysqlclient-dev | |
//get aiakos server git repo: | |
git clone https://gitlab.com/aiakos/aiakos | |
//set all environmnet variables that aiakos requires on all shells that will be used in the process: | |
export PYTHONPATH=<aiakos root folder> | |
export DJANGO_SETTINGS_MODULE=aiakos.settings | |
export SECRET_KEY=x | |
export DATABASE_URL=mysql://aiakos@<mysql ip>/accounts | |
export BASE_URL=http://192.168.122.194 | |
export INSECURE_END_SESSION_ENDPOINT | |
export DEBUG=1 | |
//when runing on an env with multiple python versions, make sure to install requirements in the correct version: | |
//(detailed instructions are here: https://stackoverflow.com/questions/42662104/how-to-install-pip-for-python-3-6-on-ubuntu-16-10) | |
/usr/bin/python3.6 -m pip install -r requirements.txt | |
//verify requirements have been installed in 3.6: | |
find / -name 'requests.py' | |
python -m aiakos collectstatic --noinput | |
gunicorn -k gevent -b [::]:80 aiakos.wsgi | |
django-admin migrate | |
django-admin loaddata devdata.yaml | |
//connect to server to verify it's working: | |
http://<server ip>:80 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment