Skip to content

Commit

Permalink
chore: added debug logs everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
MAXOUXAX committed May 10, 2024
1 parent 43a1fb6 commit ad93c10
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/backend-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,11 @@ jobs:

- name: Update and restart containers
uses: appleboy/[email protected]
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
envs: SENTRY_AUTH_TOKEN
script: |
echo Using Sentry token: $SENTRY_AUTH_TOKEN
echo $SENTRY_AUTH_TOKEN | cut -c -10
cd /home/ubuntu/.docker/datsmysong
git pull
docker-compose down
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ WORKDIR /
COPY . ./
WORKDIR /backend
RUN npm install
RUN echo $SENTRY_AUTH_TOKEN
RUN npm run build
ENV NODE_ENV=production
CMD ["node", "build/server.js"]
Expand Down
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "cross-env NODE_ENV=development nodemon --watch src src/server.ts",
"build": "tsc -p tsconfig.json && npm run sentry:sourcemaps",
"postinstall": "npm link ../commons",
"sentry:sourcemaps": "sentry-cli sourcemaps inject --org datsmysong --project backend ./build && sentry-cli sourcemaps upload --org datsmysong --project backend ./build"
"sentry:sourcemaps": "echo $SENTRY_AUTH_TOKEN | cut -c 1-15 && sentry-cli sourcemaps inject --org datsmysong --project backend ./build && sentry-cli sourcemaps upload --org datsmysong --project backend ./build"
},
"author": "",
"license": "ISC",
Expand Down

0 comments on commit ad93c10

Please sign in to comment.