mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-11 20:21:28 +03:00
Updated Dockerfile and entrypoint to use pm2 instead of forever
This commit is contained in:
@@ -44,4 +44,4 @@ COPY --chown=$UID:$GID [ "/backend/", "/app/" ]
|
|||||||
|
|
||||||
EXPOSE 17442
|
EXPOSE 17442
|
||||||
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
||||||
CMD [ "pm2-runtime", "ecosystem.config.js" ]
|
CMD [ "pm2-runtime", "pm2.config.js" ]
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -eu
|
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 the first arg starts with "-" pass it to program
|
||||||
if [ "${1#-}" != "$1" ]; then
|
if [ "${1#-}" != "$1" ]; then
|
||||||
|
|||||||
7
backend/pm2.config.js
Normal file
7
backend/pm2.config.js
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
module.exports = {
|
||||||
|
apps : [{
|
||||||
|
name : "YoutubeDL-Material",
|
||||||
|
script : "./app.js",
|
||||||
|
watch : "placeholder"
|
||||||
|
}]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user