Skip to main content

A tool for creating pluggable web-processes for deployment

Project description

Plug

Plug is a tool to automate packaging and installation of Python daemons including Python dependencies in the package. It grew out of my use of Supervisor and the problems of managing large numbers of processe.

Installing

Since many parts of Plug are still in flux you should clone the repo and run

python setup.py install

to install Plug.

Creating a Plug

To create a plug you create a config file with minimal information then run

plug create –package={package_name}

The config file looks something like:

[server1] command=bin/python -m SimpleHTTPServer 8001 user=plug_user

You will be left with a plug:

{package_name}.server1.plug

Installing a Plug

Once you put this on your system you can run

plug install –plug={package_name}.server1.plug

This will create a new virtualenv in /srv/plug ready to be setup as a daemon. To have runit start the process you run:

plug setup –plug={package_name}.server1.plug

Optionally with the argument –number to setup multiple daemons from that package. The number causes multiple links to be created in /etc/sv and /etc/srv.

Other Commands

Other commands included are list and status which will list all plugs installed and the runit status of each daemon instance.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plug-0.1.0.tar.gz (9.6 kB view details)

Uploaded Source

File details

Details for the file plug-0.1.0.tar.gz.

File metadata

  • Download URL: plug-0.1.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for plug-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b2c8a8bea4b19182f174d567660daa6ea5e29545deaf680080abb101a1818dc6
MD5 5b26e1d1eae2750f71a8ac1e163c4f3c
BLAKE2b-256 31ebc043e5b4b9c037b870e7f3b9e6ad196883fbc8f14fc1ac60e246cc03ca6c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page