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 <georger.silva@gmail.com> wrote:
The secret key contains % chars. Chance them to something else or escape them.
--Em 22/07/2016 13:49, "Ankush Thakur" <ankush.thakur53@gmail.com> escreveu:You received this message because you are subscribed to the Google Groups "Django users" group.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 'environment' is badly formattedWhat do you think is badly formatted here?Best,Ankush
On Thursday, July 21, 2016 at 11:51:19 PM UTC+5:30, george wrote: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=INFOenvironment=PYTHONPATH=/home/ankush/jremind/jremind,SECRET_KEY="foo",VARIABLE_A="a"directory=/home/ankush/jremind/jremindstdout_logfile=/home/ankush/jremind/logs/celeryd.logstderr_logfile=/home/ankush/jremind/logs/celeryd.logautostart=trueautorestart=truestartsecs=10stopwaitsecs=600Supervisor won't be able to read them otherwise. There are other alternatives, for example, if you are using a crafted command, using bash:command=/home/foo/command.shenvironment=PYTHONPATH=/home/ankush/jremind/jreminddirectory=/home/ankush/jremind/jremindstdout_logfile=/home/ankush/jremind/logs/celeryd.logstderr_logfile=/home/ankush/jremind/logs/celeryd.logautostart=trueautorestart=truestartsecs=10stopwaitsecs=600command.sh!#/bin/bashexport SECRET_KEY="foo"export VARIABLE_A="a"echo $SECRET_KEYecho $VARIABLE_A
--George R. C. Silva
Sigma Geosistemas LTDA----------------------------
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f9639cef-0a04-4982-92b4-9c8a9c5a1158%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/0yxoRdSyctA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGyPVTvOfBvbh_Cpz3ZgRb%3DcfQ3K8FuoS5Xi57FjTdO9aCyQ4g%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALX%3DrKLWr%3Dc2X_DEo44na6d7GraVve-6qdAWiP2RrdKOC_idJg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment