Posts

Showing posts with the label celery

[DRAFT] Installing and Deploying Celery on a Production Machine

This tutorial is not to teach you how to use celery, but a guide to deploying celery. I assume you have made a celery app and are familiar with the basics. The $ sign used here is to represent the command prompt and some of the commands might fail because of permission errors. I would suggest running them as sudo i.e by adding a "sudo" before them. Step 1: install celery $ easy_install Celery or if you have pip installed $ pip install Celery Step 2: Then put your python project in the a folder. I put mine in /opt/Myproject/ The project should have your celery configuration file "celeryconfig.py" and the project files that your config refers to. Step 3: At this stage you should $cd /opt/Myproject/ to the project folder and try out celery using the terminal. $celeryd you can define your options in the config file. For launch time options like starting celerybeat use $celeryd --help Step 4: If every thing is working fine you can start with deploying celery. Get the gen...