openeats is a continuation from qgriffith/OpenEats. You can test it here: recetas.grigri.cloud
- Updated to Django 1.10
- Docker-compose to deploy project
Install and create basic data:
docker-compose up -d database && \
docker-compose run --rm web python manage.py makemigrations && \
docker-compose run --rm web python manage.py migrate && \
docker-compose run --rm web python manage.py collectstatic --noinput --clear && \
docker-compose run --rm web python manage.py createsuperuser
Deploy environment:
docker-compose up -d
Run tests:
docker-compose run --rm web python manage.py tests
Load fixtures:
docker-compose run --rm web python manage.py loaddata openeats/accounts/fixtures/test_user_data.json
docker-compose run --rm web python manage.py loaddata openeats/list/fixtures/list_test_data.json
docker-compose run --rm web python manage.py loaddata openeats/list/fixtures/aisle_data.json alex@alex-laptop
docker-compose run --rm web python manage.py loaddata openeats/accounts/fixtures/test_friend_data.json
docker-compose run --rm web python manage.py loaddata openeats/recipe_groups/fixtures/course_data.json
docker-compose run --rm web python manage.py loaddata openeats/recipe_groups/fixtures/cuisine_data.json
docker-compose run --rm web python manage.py loaddata openeats/recipe/fixtures/recipe_data.json
docker-compose run --rm web python manage.py loaddata openeats/ingredient/fixtures/ing_data.json
Configure editing docker-compose.prod.yml
environment variables.
Install and create basic data:
docker-compose -f docker-compose.prod.yml up -d database && \
docker-compose -f docker-compose.prod.yml run --rm web python manage.py makemigrations && \
docker-compose -f docker-compose.prod.yml run --rm web python manage.py migrate && \
docker-compose -f docker-compose.prod.yml run --rm web python manage.py collectstatic --noinput --clear && \
docker-compose -f docker-compose.prod.yml run --rm web python manage.py createsuperuser
Deploy environment:
docker-compose -f docker-compose.prod.yml up -d
cd web/openeats
django-admin makemessages --all