Re: Unable to set up celery in supervisord

2016-07-22 Thread Ankush Thakur
Yes, I guess that's good enough. Thanks for helping out! :-) Regards, Ankush Thakur On Fri, Jul 22, 2016 at 10:54 PM, George Silva wrote: > I'm familiar with the two ways I've explained to you. I'm not sure if > there are others. > > Actually, it's a single place where you have to define the v

Re: Unable to set up celery in supervisord

2016-07-22 Thread George Silva
I'm familiar with the two ways I've explained to you. I'm not sure if there are others. Actually, it's a single place where you have to define the variables (the supervisor conf) so I don't think it's that bad. On Fri, Jul 22, 2016 at 2:18 PM, Ankush Thakur wrote: > Unfortunately the docs are

Re: Unable to set up celery in supervisord

2016-07-22 Thread Ankush Thakur
Unfortunately the docs are anything but beginner-friendly on Celery + Supervisor: http://docs.celeryproject.org/en/latest/tutorials/daemonizing.html#supervisord If you follow the link, you land on a GitHub page with three files and no explanations. :( Besides, if you see https://github.com/celery/

Re: Unable to set up celery in supervisord

2016-07-22 Thread Ankush Thakur
Wooohooo! That did it. Many thanks! :-) :-) :-) Umm, but, say, isn't kind of clunky, that I have to copy all the variables over to the supervisor config? Isn't there a neater way to do it? Regards, Ankush Thakur On Fri, Jul 22, 2016 at 10:21 PM, George Silva wrote: > The secret key contains %

Re: Unable to set up celery in supervisord

2016-07-22 Thread George Silva
Check the docs. There's plenty of information regarding this. It's probably a bad formatted character, misplaced comma or whatever. On Fri, Jul 22, 2016 at 1:49 PM, Ankush Thakur wrote: > Well, setting up the line this way gives me the following error: > > Starting supervisor: Error: Format str

Re: Unable to set up celery in supervisord

2016-07-22 Thread George Silva
The secret key contains % chars. Chance them to something else or escape them. Em 22/07/2016 13:49, "Ankush Thakur" escreveu: > Well, setting up the line this way gives me the following error: > > Starting supervisor: Error: Format string > 'PYTHONPATH=/home/ankush/jremind/jremind,JREMIND_SECRET

Re: Unable to set up celery in supervisord

2016-07-22 Thread Ankush Thakur
Well, setting up the line this way gives me the following error: Starting supervisor: Error: Format string 'PYTHONPATH=/home/ankush/jremind/jremind,JREMIND_SECRET_KEY="SDFDSF@$%#$%$#TWFDFGFG%^$%ewrw$#%TFRETERTERT$^",JREMIND_DATABASE="jremind",JREMIND_USERNAME="root",JREMIND_PASSWORD="root"' for

Re: Unable to set up celery in supervisord

2016-07-22 Thread monoBOT
2016-07-21 19:20 GMT+01:00 George Silva : > If you are getting variables from the environment, supervisor that special > environment directive. The variables need to specified in the supervisor > conf file, such as: ​I totally recomend this tutorial about that ... its very well detailed, so you

Re: Unable to set up celery in supervisord

2016-07-21 Thread George Silva
If you are getting variables from the environment, supervisor that special environment directive. The variables need to specified in the supervisor conf file, such as: command=/home/ankush/jremind/env/bin/celery --app=remind.celery:app worker --loglevel=INFO environment=PYTHONPATH=/home/ankush/jre