Skip to content

mikcho/zsh-pm2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

zsh-pm2

A pm2 plugin for zsh on ubuntu.

It provides some useful pm2 aliases to manage node.js apps run as www-data user.

Installation

Install plugin:

git clone git://github.com/mikcho/zsh-pm2 $ZSH_CUSTOM/plugins/zsh-pm2

Edit ~/.zshrc to enable plugin:

plugins=(zsh-pm2)

Source ~/.zshrc:

source ~/.zshrc

Add the plugin into ~/.zshrc:

zplug "mikcho/zsh-pm2"

Usage

Start a node.js app:

pm2-www-start app.js --name "my-app"

Save all node.js apps to be restarted on system boots/reboots:

pm2-www save

Create the service for pm2 daemon:

pm2-www-startup

Remove the service for pm2 daemon:

pm2-www-unstartup

License

Copyright (c) 2017 Mik Cho - Released under the MIT license.

About

A pm2 plugin for zsh on ubuntu.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages