Skip to content

Commit

Permalink
fix(speed): replaced api key package version, 10x speed increase
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjeannesson committed Feb 21, 2024
1 parent 3807a49 commit 365269e
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 10 deletions.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@ up:
up-prod:
docker compose -f backend/docker/production.yml up -d --build --remove-orphans

up-no-docker:
export DB_SETUP=litestream
export DB_ENGINE=SQLITE
export USE_DOCKER=no
export IPYTHONDIR=/app/.ipython
export REDIS_URL=redis://redis:6379/0
export DJANGO_SETTINGS_MODULE=config.settings.development
export DJANGO_SECRET_KEY=not_so_secret
export DJANGO_DEBUG=True
export IS_LOCAL=True
python backend/manage.py makemigrations
python backend/manage.py migrate
python backend/manage.py runserver_plus

down:
docker compose -f backend/docker/development-${IMAGE}.yml down

Expand Down
2 changes: 1 addition & 1 deletion backend/.envs/.dev_as_prod/.django
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ IS_LOCAL=True
# Flower
# ------------------------------------------------------------------------------
CELERY_FLOWER_USER=
CELERY_FLOWER_PASSWORD=
CELERY_FLOWER_PASSWORD=
16 changes: 8 additions & 8 deletions backend/requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ redis==5.0.1 # https://github.com/redis/redis-py
celery==5.3.6 # pyup: < 6.0 # https://github.com/celery/celery
flower==2.0.1 # https://github.com/mher/flower

# Django
# ------------------------------------------------------------------------------
# # Django
# # ------------------------------------------------------------------------------
django==4.2.7 # https://www.djangoproject.com/
djangorestframework-simplejwt==5.3.0 # https://github.com/jazzband/djangorestframework-simplejwt
django-health-check==3.17.0 # https://github.com/revsys/django-health-check
django-environ==0.11.2 # https://github.com/joke2k/django-environ
django-celery-beat==2.5.0 # https://github.com/celery/django-celery-beat
django-extensions==3.2.3 # https://github.com/django-extensions/django-extensions
drf-spectacular==0.26.5 # https://github.com/tfranzel/drf-spectacular
django-extensions==3.2.3 # https://github.com/django-extensions/django-extensions
django-cors-headers==4.3.1 # https://github.com/adamchainz/django-cors-headers
djangorestframework-simplejwt==5.3.0 # https://github.com/jazzband/djangorestframework-simplejwt
django-health-check==3.17.0 # https://github.com/revsys/django-health-check

django-napse==1.10.4 # https://github.com/napse-invest/django-napse
djangorestframework-api-key==2.3.0
django-napse==1.11.0 # https://github.com/napse-invest/django-napse
djangorestframework-api-key==3.0.0

# External tools
# # External tools
boto3==1.34.14 # https://boto3.amazonaws.com/v1/documentation/api/latest/guide/quickstart.html
1 change: 1 addition & 0 deletions backend/requirements/development.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Werkzeug==3.0.1 # https://github.com/pallets/werkzeug
ipdb==0.13.13 # https://github.com/gotcha/ipdb
watchfiles==0.21.0 # https://github.com/samuelcolvin/watchfiles
tblib==3.0.0 # https://pypi.org/project/tblib/

# Testing
# ------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion setup-osx.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
brew install [email protected]
python3.11 -m pip install --upgrade pip
# python3.11 -m pip install --upgrade pip
pip3 install virtualenv
python3 -m virtualenv .venv --python=python3.11
printf "\n===============================================\nVirtual python environment has been created.\n"
Expand Down

0 comments on commit 365269e

Please sign in to comment.