chore: Update Dockerfile to fix Teleport installation command and create teleport configuration file
Build and Push Docker Images / build-and-push (push) Failing after 15s

This commit is contained in:
2024-09-08 16:08:55 +02:00
parent 29b8b90456
commit 8ad0aa2fa1
2 changed files with 2 additions and 19 deletions
@@ -1,15 +0,0 @@
module.exports = {
apps: [
{
name: "node-app",
script: "npm",
args: "run dev",
cwd: "/workspace", // Ensure this matches your working directory
instance_var: "NODE",
watch: true,
env: {
NODE_ENV: "development",
},
},
],
};
+2 -4
View File
@@ -80,7 +80,6 @@ else
echo "Error: Environment file not found at /environment/.dev.env"
exit 1
fi
# Set the git user and email
git config --global user.name $GIT_USER
git config --global user.email $GIT_EMAIL
@@ -95,6 +94,5 @@ CONFIG_FILE="/etc/teleport.yaml"
sed -i "s/^ nodename:.*/ nodename: $HOSTNAME/" "$CONFIG_FILE"
nohup teleport start &
# Start the application with PM2 using the ecosystem file
exec pm2-runtime start /ecosystems/ecosystem.develop.js
# Start the application with pm2
exec pm2-runtime "npm run dev"