Skip to content

Latest commit

 

History

History
52 lines (47 loc) · 1.69 KB

README.md

File metadata and controls

52 lines (47 loc) · 1.69 KB

A small server made for continuous deploment on my RaspberryPI.

0|pi-cd    | robiXxu updated robiXxu/pi-cd
0|pi-cd    | [Pi-CD] listening on 5555

0|pi-cd  | robiXxu updated robiXxu/pi-cd
0|pi-cd  | HEAD is now at 0e5cea7 updated
PM2      | Stopping app:pi-cd id:0
PM2      | App [pi-cd] with id [0] and pid [20576], exited with code [0] via signal [SIGINT]
PM2      | pid=20576 msg=process killed
PM2      | Starting execution sequence in -fork mode- for app name:pi-cd id:0
PM2      | App name:pi-cd id:0 online
0|pi-cd  | [Pi-CD] listening on 5555
0|pi-cd       | robiXxu updated robiXxu/bot-hunter
0|pi-cd       | HEAD is now at 0143e2e updated
0|pi-cd       | Updating 0143e2e..5a62659
0|pi-cd       | Fast-forward
0|pi-cd       |  app.js | 4 ++--
0|pi-cd       |  1 file changed, 2 insertions(+), 2 deletions(-)
0|pi-cd       | From github.com:robiXxu/bot-hunter
0|pi-cd       |    0143e2e..5a62659  main       -> origin/main
PM2           | Stopping app:bot-hunter id:1
PM2           | App [bot-hunter] with id [1] and pid [21911], exited with code [0] via signal [SIGINT]
PM2           | pid=21911 msg=process killed
PM2           | Starting execution sequence in -fork mode- for app name:bot-hunter id:1
PM2           | App name:bot-hunter id:1 online
0|pi-cd       | Use --update-env to update environment variables
0|pi-cd       | [PM2] Applying action restartProcessId on app [bot-hunter](ids: 1)
0|pi-cd       | [PM2] [bot-hunter](1) ✓

pm2 config example

module.exports = {
  apps: [
    {
      name: "pi-cd",
      script: "./pi-cd/app.js",
      env: {
        PICD_GITHUB_WEBHOOK_SECRET: "",
        PICD_PORT: 5555,
        PICD_BASEPATH: "/home/pi/root",
      },
    }
  ],
};