Updated Dockerfile and entrypoint to use pm2 instead of forever

This commit is contained in:
Isaac Abadi
2021-09-27 18:11:38 -06:00
parent 46087f622e
commit dbeeb32d48
3 changed files with 9 additions and 2 deletions

View File

@@ -44,4 +44,4 @@ COPY --chown=$UID:$GID [ "/backend/", "/app/" ]
EXPOSE 17442
ENTRYPOINT [ "/app/entrypoint.sh" ]
CMD [ "pm2-runtime", "ecosystem.config.js" ]
CMD [ "pm2-runtime", "pm2.config.js" ]

View File

@@ -1,7 +1,7 @@
#!/bin/sh
set -eu
CMD="pm2-runtime ecosystem.config.js"
CMD="pm2-runtime pm2.config.js"
# if the first arg starts with "-" pass it to program
if [ "${1#-}" != "$1" ]; then

7
backend/pm2.config.js Normal file
View File

@@ -0,0 +1,7 @@
module.exports = {
apps : [{
name : "YoutubeDL-Material",
script : "./app.js",
watch : "placeholder"
}]
}