update Makefile

This commit is contained in:
Sam 2020-07-15 09:19:03 +02:00
parent d2768c015c
commit 36ded61e36
3 changed files with 6 additions and 3 deletions

View File

@ -79,7 +79,7 @@ recalculate:
$(FLASK) recalculate $(FLASK) recalculate
run: run:
$(MAKE) P="run-server run-client" make-p $(MAKE) P="run-server run-workers run-client" make-p
run-client: run-client:
serve -s fittrackee_client/build -l 3000 >> serve.log 2>&1 serve -s fittrackee_client/build -l 3000 >> serve.log 2>&1
@ -88,7 +88,7 @@ run-server:
cd fittrackee_api && $(GUNICORN) -b 127.0.0.1:5000 "fittrackee_api:create_app()" --error-logfile ../gunicorn-error.log cd fittrackee_api && $(GUNICORN) -b 127.0.0.1:5000 "fittrackee_api:create_app()" --error-logfile ../gunicorn-error.log
run-workers: run-workers:
$(FLASK) worker --processes=1 $(FLASK) worker --processes=$(WORKERS_PROCESSES) >> workers.log 2>&1
serve-python: serve-python:
$(FLASK) run --with-threads -h $(HOST) -p $(API_PORT) $(FLASK) run --with-threads -h $(HOST) -p $(API_PORT)

View File

@ -1,9 +1,12 @@
WORKERS_PROCESSES = 1
export REACT_APP_API_URL= export REACT_APP_API_URL=
export REACT_APP_THUNDERFOREST_API_KEY= export REACT_APP_THUNDERFOREST_API_KEY=
export WEATHER_API= export WEATHER_API=
export UI_URL= export UI_URL=
export EMAIL_URL= export EMAIL_URL=
export SENDER_EMAIL= export SENDER_EMAIL=
export REDIS_URL=
# for dev env # for dev env
export CODACY_PROJECT_TOKEN= export CODACY_PROJECT_TOKEN=

View File

@ -1,7 +1,7 @@
from fittrackee_api import dramatiq, email_service from fittrackee_api import dramatiq, email_service
@dramatiq.actor() @dramatiq.actor(queue_name='fittrackee_emails')
def reset_password_email(user, email_data): def reset_password_email(user, email_data):
email_service.send( email_service.send(
template='password_reset_request', template='password_reset_request',