8000 GitHub - WebinarGeek/spm: Screen Procfile Manager
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

WebinarGeek/spm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spm

The lightweight Screen Procfile Manager

test

Using spm you can start/stop connect/kill Procfile defined services easily. Either one by one or in bulk by using single characters or full argument names. For example, consider a Procfile like this:

caddy: caddy run
rails: bundle exec rails s
nginx: nginx

You can then run spm s or spm start to start all of these in separate screens. After that you can run a series of other subcommands to manage them. Most commands can either run for all Procfile-defined services or by service name. You can for example restart rails with spm r rails or restart them all with spm r.

Install

The default pip-method:

pip install --user -I git+https://github.com/WebinarGeek/spm

The above can also be used to upgrade, though you might need to use pip3 instead. Or alternatively, the "I don't want to install pip"-method:

curl https://raw.githubusercontent.com/WebinarGeek/spm/master/spm.py -o ~/.local/bin/spm
chmod +x ~/.local/bin/spm

And then make sure that ~/.local/bin is actually in your $PATH.

Usage

The usage documentation is included in the tool when you run it plain or with -h:

usage: spm [-h] {start,s,restart,r,quit,q,kill,k,connect,c,help,h,list,l,tail,t} ...

The lightweight Screen Procfile Manager

options:
  -h, --help            show this help message and exit

sub-commands:
  All the valid sub-commands to manage services

  {start,s,restart,r,quit,q,kill,k,connect,c,help,h,list,l,tail,t}
    start (s)           Start all or some services
    restart (r)         Restart all or some services
    quit (q)            Quit all or some services
    kill (k)            Kill all or some services
    connect (c)         Connect to the shell of a service
    help (h)            Show this help and exit
    list (l)            Show a list of services with status
    tail (t)            Show the tail of logs from a service

License

The spm tool is created by Jelmer van Arnhem at WebinarGeek and may be copied and modified under the terms of the MIT license.

About

Screen Procfile Manager

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0