diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index adea7ab..e3f79bf 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -23,8 +23,7 @@ jobs: - name: Create .env file run: | - echo "GROQ_API_KEY=${{ secrets.secrets.GROQ_API_KEY }}" > .env - echo "PORT=${{ secrets.secrets.PORT }}" >> .env + echo "GROQ_API_KEY=${{ secrets.secrets}}" > .env - name: Sync code to application directory run: | @@ -34,6 +33,7 @@ jobs: --exclude '.gitignore' \ --exclude 'README.md' \ --exclude '.github' \ + --exclude 'logs' \ ./ /home/muhammedr7025/server - name: Install dependencies in app directory diff --git a/ecosystem.config.js b/ecosystem.config.js index 401f341..e1b69c4 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -16,8 +16,8 @@ module.exports = { env_file: ".env", merge_logs: true, cwd: "/home/muhammedr7025/server", - error_file: "/home/muhammedr7025/logs/err.log", - out_file: "/home/muhammedr7025/logs/out.log", + error_file: "/home/muhammedr7025/server/logs/err.log", + out_file: "/home/muhammedr7025/server/logs/out.log", log_date_format: "YYYY-MM-DD HH:mm:ss Z", source_map_support: true, instance_var: "INSTANCE_ID",