EVA/README.md

57 lines
1.3 KiB
Markdown
Raw Normal View History

2020-12-23 09:59:05 +00:00
# eva
A simple tool for on- and offboarding people in a mid sized organisation.
"EVA" is an german acronym for "Eintritt, Veränderung, Austritt",
meaning "Onboarding, Change, Offboarding"
# development
2020-12-23 10:30:30 +00:00
- set up a virtual environment with virtualenvwrapper or some other
2020-12-23 09:59:05 +00:00
environment managing tool
2020-12-23 10:36:54 +00:00
- use this environment and do
2020-12-23 09:59:05 +00:00
2021-03-10 11:20:48 +00:00
pip install django django-multiselectfield django-formtools django-allauth
2020-12-23 10:30:30 +00:00
- clone this repository
2020-12-23 10:36:54 +00:00
- initialise your database with
python manage.py migrate
- start your development server with
python manage.py runserver
# oauth
- You need to add oauth information in the django backend via .../admin in "Social Accounts"
# production
- you can use gunicorn as server for example instead of the django development server.
- we use whitenoise for serving static files
- we still use the development SQLITE database from django
do the following in the project main directory:
ln -sr eva/settings_production.py eva/settings.py
edit /secrets.json to contain something similar to
{
"SECRET_KEY": "THIS IS ANOTHER SECRET!"
}
run the following commands:
python3 manage.py migrate
python3 manage.py collectstatic
server starts with
2021-09-08 11:49:34 +00:00
export PYTHONUNBUFFERED=TRUE; nohup gunicorn --forwarded-allow-ips="*" -b '0:8000' eva.wsgi &> logfile &