Skip to content

Commit

Permalink
Merge pull request #156 from betagouv/test_config_proposal
Browse files Browse the repository at this point in the history
feat: change script accès
  • Loading branch information
baptou12 authored Sep 18, 2023
2 parents e3c5257 + bdb0930 commit 1510da5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ jobs:
echo "${{ secrets.ECLIPSE_PRIVATE_KEY }}" > ~/.ssh/eclipse
chmod 600 ~/.ssh/eclipse
ssh -o StrictHostKeyChecking=no ${{ env.ECLIPSE_SSH_USER }}@${{ env.ECLIPSE_SSH_HOST }} -i ~/.ssh/eclipse
- name: Equinoxe Deployment
shell: bash
run: |
mkdir -p ~/.ssh/
echo "${{ secrets.EQUINOXE_PRIVATE_KEY }}" > ~/.ssh/equinoxe
chmod 600 ~/.ssh/equinoxe
ssh -o StrictHostKeyChecking=no ${{ env.EQUINOXE_SSH_USER }}@${{ env.EQUINOXE_SSH_HOST }} -i ~/.ssh/equinoxe
# - name: Equinoxe Deployment
# shell: bash
# run: |
# mkdir -p ~/.ssh/
# echo "${{ secrets.EQUINOXE_PRIVATE_KEY }}" > ~/.ssh/equinoxe
# chmod 600 ~/.ssh/equinoxe
# ssh -o StrictHostKeyChecking=no ${{ env.EQUINOXE_SSH_USER }}@${{ env.EQUINOXE_SSH_HOST }} -i ~/.ssh/equinoxe
4 changes: 2 additions & 2 deletions roles/bootstrap/templates/pm2_config.yaml.j2
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#jinja2: trim_blocks: True, lstrip_blocks: True
apps:
- name: {{ item.name }}-node-server
cwd: /home/main/{{ item.name }}/repository/dist-server/backend/
script: server.js
cwd: /home/main/{{ item.name }}/repository/
script: dist-server/backend/server.js
instances: {{ item.node_instance_number }}
exec_mode: cluster
merge_logs: true
Expand Down

0 comments on commit 1510da5

Please sign in to comment.