Procenv is a command line program that:
- Runs a Procfile-based application
- Monitors the application's compliance with the environment via given checks (e.g. does it bind to the port defined in the
PORT
environment variable?) - Reports the application's status and findings via structured messages to stderr
Procenv can be installed via PyPI (requires Python >= 3.6):
pipenv install procenv
To run your application with Procenv, just run the procenv
command in your terminal, after "cd
ing" into your project's directory.
procenv
For configuration options and detailed documentation, head over to the docs
directory.
Procenv started out of our need in SourceLair to help our customers diagnose common issues with their web applications (e.g. not binding on the right port or not knowing the connection details for their database). For that reason we needed a tool that would carry out 2 tasks concurrently:
- Run Procfile-based applications
- Check and report the status of these applications
Heroku is a complete platform for running Procfile-based applications. It provides features as scaling your application, deploy your application via Git etc. Procenv runs the application "locally" and reports it's status to stderr.
Docker and Docker Compose take care of isolating, packaging and running whole stacks. Procenv focuses on running the main processes of your application based on a Procfile
, which is quite simpler than a docker-compose.yml
file. Procenv will not take care of running your database or Redis server, as Docker and Docker Compose can.
Procenv is a superset of these tools. Actually, Procenv relies on Honcho to run Procfile-based applications.
Procenv is licensed under the MIT License.
Created for SourceLair in SourceLair by SourceLair.