mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-07 20:10:03 +03:00
Updated Dockerfile and entrypoint to use pm2 instead of forever
This commit is contained in:
@@ -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
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