diff --git a/Dockerfile b/Dockerfile index 8324e3c..4a2d3b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] diff --git a/backend/entrypoint.sh b/backend/entrypoint.sh index c4c0edc..5074353 100755 --- a/backend/entrypoint.sh +++ b/backend/entrypoint.sh @@ -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 diff --git a/backend/pm2.config.js b/backend/pm2.config.js new file mode 100644 index 0000000..42e78c5 --- /dev/null +++ b/backend/pm2.config.js @@ -0,0 +1,7 @@ +module.exports = { + apps : [{ + name : "YoutubeDL-Material", + script : "./app.js", + watch : "placeholder" + }] +} \ No newline at end of file