Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
crlssn committed Nov 13, 2024
1 parent 8f993cb commit e390cc0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ jobs:
db_username: ${{ secrets.TF_VAR_DB_USERNAME }}
db_password: ${{ secrets.TF_VAR_DB_PASSWORD }}

- name: Migrate database
uses: ./.github/actions/migrate/database
with:
db_host: ${{ vars.DB_HOST }}
db_port: ${{ vars.DB_PORT }}
db_name: ${{ vars.DB_NAME }}
db_user: ${{ secrets.DB_USER }}
db_password: ${{ secrets.DB_PASSWORD }}

- name: Deploy web app to S3
uses: ./.github/actions/deploy/web-app
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: ${{ secrets.AWS_REGION }}
aws_bucket_name: ${{ secrets.AWS_BUCKET_NAME }}
# - name: Migrate database
# uses: ./.github/actions/migrate/database
# with:
# db_host: ${{ vars.DB_HOST }}
# db_port: ${{ vars.DB_PORT }}
# db_name: ${{ vars.DB_NAME }}
# db_user: ${{ secrets.DB_USER }}
# db_password: ${{ secrets.DB_PASSWORD }}
#
# - name: Deploy web app to S3
# uses: ./.github/actions/deploy/web-app
# with:
# aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# aws_region: ${{ secrets.AWS_REGION }}
# aws_bucket_name: ${{ secrets.AWS_BUCKET_NAME }}
2 changes: 1 addition & 1 deletion js/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ app.use(router)

const authStore = useAuthStore()
if (authStore.accessToken) {
await RefreshAccessTokenOrLogout()
RefreshAccessTokenOrLogout().catch(error => { console.log(error) })
authStore.setAccessTokenRefreshInterval(ScheduleTokenRefresh())
}

Expand Down

0 comments on commit e390cc0

Please sign in to comment.