Updated Dockerfile and entrypoint to use pm2 instead of forever

forever-to-pm2
Isaac Abadi 4 years ago
parent 46087f622e
commit dbeeb32d48

@ -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" ]

@ -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

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