From 8f38e794b4eb3683e52179151a3b905c911125d1 Mon Sep 17 00:00:00 2001 From: Alexandro Hervis Date: Wed, 11 Oct 2023 14:32:48 -0300 Subject: [PATCH] ajustando pipeline --- .github/workflows/pipeline.yml | 5 +++++ ecosystem.config.js | 14 -------------- 2 files changed, 5 insertions(+), 14 deletions(-) delete mode 100644 ecosystem.config.js diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 4ffbd12..8675a17 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -11,6 +11,11 @@ jobs: name: Deploy-ssh runs-on: ubuntu-latest steps: + - name: 'Create env file' + run: | + touch .env.prod + echo SONAR_USER_TOKEN=${{ secrets.SONAR_USER_TOKEN }} >> .env.prod + cat .env.prod - name: Executing remote ssh commands uses: appleboy/ssh-action@v1.0.0 with: diff --git a/ecosystem.config.js b/ecosystem.config.js deleted file mode 100644 index e57ffe4..0000000 --- a/ecosystem.config.js +++ /dev/null @@ -1,14 +0,0 @@ -module.exports = { - apps: [ - { - name: 'engineering-metrics-collector', - script: 'dist/main.js', - instances: 'max', - exec_mode: 'cluster', - env: { - NODE_ENV: 'production', - PORT: 5100, - }, - }, - ], -};