Skip to content

Commit

Permalink
Added envs to prod ec2
Browse files Browse the repository at this point in the history
  • Loading branch information
markbotterill committed May 1, 2024
1 parent 53df6d7 commit 7391a16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/send-slack-metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@ jobs:
- name: Trigger metric dispatch
run: |
ssh prod << 'EOF'
set -e
cd danswer
docker exec danswer-stack-background-1 sh -c\
'export METRICS_CHANNEL_ID=$METRICS_CHANNEL_ID; \
export SLACK_BOT_TOKEN=$SLACK_BOT_TOKEN; python\
/app/scripts/send_slack_report/send_slack_report.py'
EOF
env:
METRICS_CHANNEL_ID: ${{ secrets.METRICS_CHANNEL_ID }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
make send-slack-metrics
EOF
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ re-deploy:
echo "Current directory is: $$(pwd)" && \
docker compose -p danswer-stack down && \
git pull origin prod && \
docker compose -p danswer-stack -f docker-compose.prod.yml up -d --build
docker compose -p danswer-stack -f docker-compose.prod.yml up -d --build

send-slack-metrics:
docker exec danswer-stack-background-1 python /app/scripts/send_slack_report/send_slack_report.py

0 comments on commit 7391a16

Please sign in to comment.