Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bahiamartins/fdafa02f056477e852f5ecaaa30a8fa7 to your computer and use it in GitHub Desktop.
Save bahiamartins/fdafa02f056477e852f5ecaaa30a8fa7 to your computer and use it in GitHub Desktop.
call celery in AWS Elastic Beanstalk via post deploy. Process of Daemonization using Supervisord
{
"container_commands": {
"celery_configure": {
"command": "mv /tmp/100_celery_worker.sh /opt/elasticbeanstalk/hooks/appdeploy/post && chmod 774 /opt/elasticbeanstalk/hooks/appdeploy/post/100_celery_worker.sh",
"leader_only": true
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment