Try and tuck away more files
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e86f162b84
commit
a98c854ff8
@ -1,6 +1,6 @@
|
|||||||
export CELERY_BROKER_URL=redis://localhost:6379
|
export CELERY_BROKER_URL=redis://localhost:6379
|
||||||
export CELERY_RESULT_BACKEND=redis://localhost:6379
|
export CELERY_RESULT_BACKEND=redis://localhost:6379
|
||||||
export FLASK_APP=wsgi:app
|
export FLASK_APP=scripts.wsgi:app
|
||||||
export FLASK_ENV=development
|
export FLASK_ENV=development
|
||||||
export REDIS_HOST=localhost
|
export REDIS_HOST=localhost
|
||||||
export REDIS_PORT=6379
|
export REDIS_PORT=6379
|
||||||
|
@ -14,6 +14,7 @@ $ cd magic-app
|
|||||||
### Docker Way
|
### Docker Way
|
||||||
|
|
||||||
```
|
```
|
||||||
|
$ cd docker
|
||||||
$ docker-compose up
|
$ docker-compose up
|
||||||
```
|
```
|
||||||
|
|
||||||
|
BIN
celerybeat-schedule
Normal file
BIN
celerybeat-schedule
Normal file
Binary file not shown.
@ -5,11 +5,12 @@ x-env: &env
|
|||||||
environment:
|
environment:
|
||||||
CELERY_BROKER_URL: "redis://redis:6379"
|
CELERY_BROKER_URL: "redis://redis:6379"
|
||||||
CELERY_RESULT_BACKEND: "redis://redis:6379"
|
CELERY_RESULT_BACKEND: "redis://redis:6379"
|
||||||
FLASK_APP: "wsgi:app"
|
FLASK_APP: "scripts.wsgi:app"
|
||||||
FLASK_ENV: "development"
|
FLASK_ENV: "development"
|
||||||
REDIS_HOST: "redis"
|
REDIS_HOST: "redis"
|
||||||
REDIS_PORT: "6379"
|
REDIS_PORT: "6379"
|
||||||
REDIS_SESSION_DB: "0"
|
REDIS_SESSION_DB: "0"
|
||||||
|
SECRET_KEY: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
flask:
|
flask:
|
||||||
@ -28,7 +29,7 @@ services:
|
|||||||
<<: *env
|
<<: *env
|
||||||
command: |
|
command: |
|
||||||
poetry run
|
poetry run
|
||||||
celery worker -A celworker.celery -B -l debug
|
celery worker -A scripts.celworker.celery
|
||||||
volumes:
|
volumes:
|
||||||
- "./:/magic_app/"
|
- "./:/magic_app/"
|
||||||
|
|
||||||
|
0
scripts/__init__.py
Normal file
0
scripts/__init__.py
Normal file
Reference in New Issue
Block a user