add supervisor

This commit is contained in:
Dustin Decker 2023-01-29 11:24:07 -08:00
parent 38bebeda34
commit 147873470c
2 changed files with 2 additions and 1 deletions

View file

@ -2,6 +2,7 @@ FROM node:16
RUN mkdir /app/
WORKDIR /app/
RUN npm install pm2 -g
COPY front-end/ /app/front-end/
WORKDIR /app/front-end/

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
echo "Starting server..."
node server.js
pm2-runtime server.js