Skip to content
Snippets Groups Projects
Commit cd7ff29a authored by Radim Peša's avatar Radim Peša
Browse files

readme

parent 512078c8
No related branches found
No related tags found
No related merge requests found
......@@ -11,12 +11,13 @@ Quick Setup
1. Clone this repository.
2. Create a virtualenv and install the requirements.
2a. Change pasth to deploy.sh in app.py
3. Open a second terminal window and start a local Redis server (if you are on Linux or Mac, execute `run-redis.sh` to install and launch a private copy).
4. Open a third terminal window. Start a Celery worker: `venv/bin/celery worker -A app.celery --loglevel=info`.
5. Start the Flask application on your original terminal window: `venv/bin/python app.py`.
6. Go to `http://localhost:5000/` and enjoy this application!
7. Start container with name myc. For example `docker run -it --name myc alpine sh`.
8. Start async task with `curl -X POST -i http://localhost:5000/longtask`.
9. Check status at url available in response.
9. Check status at url available in response.
For details on how this all works, see my article [Using Celery with Flask](http://blog.miguelgrinberg.com/post/using-celery-with-flask).
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment