diff --git a/Procfile.dev b/Procfile.dev new file mode 100644 index 000000000..bc4af912c --- /dev/null +++ b/Procfile.dev @@ -0,0 +1,2 @@ +web: make run-flask +worker: make run-celery diff --git a/README.md b/README.md index 79a682726..43a00cbf0 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,10 @@ Our other repositories are: `make run-celery` +1. Or, run flask and celery together with [foreman](https://rubygems.org/gems/foreman) + + `foreman start -f Procfile.dev` + ### VS Code && Docker installation @@ -97,4 +101,3 @@ If you're working in VS Code, you can also leverage Docker for a containerized d `make run-celery` NOTE: when you change .env in the future, you'll need to rebuild the devcontainer for the change to take effect. Vscode _should_ detect the change and prompt you with a toast notification during a cached build. If not, you can find a manual rebuild in command pallette or just `docker rm` the notifications-api container. -