Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/msabramo/procfile2supervisor
Tiny utility to convert a Procfile to a supervisor config file, built on top of honcho
https://github.com/msabramo/procfile2supervisor
Last synced: about 1 month ago
JSON representation
Tiny utility to convert a Procfile to a supervisor config file, built on top of honcho
- Host: GitHub
- URL: https://github.com/msabramo/procfile2supervisor
- Owner: msabramo
- Created: 2015-03-11T22:50:49.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-13T19:15:27.000Z (almost 10 years ago)
- Last Synced: 2024-05-09T20:41:03.290Z (8 months ago)
- Language: Python
- Size: 148 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
procfile2supervisor
===================Tiny utility to convert a Procfile_ to a Supervisor_ config file.
Built on top of the export functionality in Honcho_.
Example usage
-------------::
[marca@marca-mac2 profilesvc]$ ls -l Procfile
-rw-r--r--+ 1 marca staff 59 Mar 11 16:40 Procfile[marca@marca-mac2 profilesvc]$ procfile2supervisor
2015-03-11 16:41:24 [51434] [INFO] Writing './profilesvc.conf'[marca@marca-mac2 profilesvc]$ cat profilesvc.conf
[program:profilesvc]
command = gunicorn --bind 0.0.0.0:$PORT --paste development.ini
user = profilesvcuser
environment = PORT=8000
startsecs = 30
redirect_stderr = true
autorestart = true
stopwaitsecs = 10
directory = /opt/webapp/%(program_name)s
stdout_logfile = /var/log/sm/%(program_name)s-app-out.log
stdout_logfile_maxbytes = 10MB
stdout_logfile_backups = 10
stdout_capture_maxbytes = 1MB
stderr_logfile = /var/log/sm/%(program_name)s-app-err.log
stderr_logfile_maxbytes = 10MB
stderr_logfile_backups = 10
stderr_capture_maxbytes = 1MB.. _Procfile: https://devcenter.heroku.com/articles/procfile
.. _supervisor: http://supervisord.org/
.. _Honcho: https://pypi.python.org/pypi/honcho