New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pm.sh

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pm.sh - npm Package Compare versions

Comparing version 1.0.67 to 1.1.0

.pm.sh/apps/flop.cnt

11

doc/application-definition.md

@@ -6,3 +6,6 @@ Application definition files

## Environment
> `env.sh` and `env.production.sh` are automatically sourced if present
## Nodejs (package.json)

@@ -39,8 +42,4 @@

[TODO: implementation]
Put a `app.sh` or `app.bash` in your projectdir:
Ultimate freedom lies within adding the application to pm with a startcmd:
#!/bin/bash
export MY_ENV_VAR=foobar
[[ -f app.bash.live ]] && source app.bash.live
npm start
$ pm add /srv/app/myapp myapp './mystartupscript'
{
"name": "pm.sh",
"version": "1.0.67",
"version": "1.1.0",
"description": "pm2 without the fat in 1 shellscript, unix processmanagement using simply 'ps' and 'flock' and a teaspoon of shellscript & extra features",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -100,1 +100,42 @@ <img src="doc/logo.png" width="120"/>

Eventhough i love nodejs, in some cases shellscript/unix seems more appropriate.
## Upstart job
# /etc/init/pm.conf
start on (local-filesystems and net-device-up IFACE!=lo)
exec sudo -u feelgood /home/feelgood /usr/bin/pm startall
## Docker image
There's a [ready-to-go](https://hub.docker.com/r/coderofsalvation/pm.sh-nodejs) nodejs-docker image.
Put this in your `Dockerfile`:
# Usage:
# docker build -t playterm .
# docker run -it -e PROXY_PORT=8080 -e WEBHOOK_PORT=8080 -v $(pwd)/data:/data yourproject
FROM coderofsalvation/pm.sh-nodejs:latest
MAINTAINER Coder Of Salvation <info@leon.vankammen.eu>
ENV VERSION=v4.1.1
RUN echo 'http://dl-3.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories
RUN apk upgrade --update
RUN apk add mongodb
ADD . /srv/apps/yourproject
VOLUME data /data
EXPOSE 8080 80 8081 4000 4001 4002 4003
CMD [ "sh","-c","/data/Dockerboot; cat" ]
And put this in `data/Dockerboot`:
#!/bin/bash
export PROXY_PORT=8080
export WEBHOOK_PORT=8081
cp /srv/apps/playterm/lib/proxytable.js /srv/apps/proxytable.js
mongod &
/install/boot
su -c 'pm startall' nodejs

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc