Skip to content

Commit

Permalink
Merge pull request #88 from UoaWDCC/ORAKEI-Anton-Cache
Browse files Browse the repository at this point in the history
Refactor: Changed backend to not fetch off notion on each load. Instead reads of public folder cache.
  • Loading branch information
chrisv09 authored Sep 18, 2024
2 parents 86611f7 + 86b9f4d commit 5a82cd7
Show file tree
Hide file tree
Showing 85 changed files with 2,181 additions and 345 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs: # remove these tests in production - Anton
NOTION_TEAMS_ID: ${{ secrets.NOTION_TEAMS_ID }}
WEBFORMS_TOKEN: ${{ secrets.WEBFORMS_TOKEN }}
NOTION_PROJECTS_ID: ${{ secrets.NOTION_PROJECTS_ID}}
NOTION_REFRESH_ID: ${{ secrets.NOTION_REFRESH_ID }}
steps:

- name: actions checkout v3
Expand All @@ -50,4 +51,4 @@ jobs: # remove these tests in production - Anton
uses: superfly/flyctl-actions/setup-flyctl@master

- name: Fly deploy
run: flyctl deploy --build-arg ANTON=${{ secrets.ANTON }} --build-arg WEBFORMS_TOKEN=${{ secrets.WEBFORMS_TOKEN }} --build-arg NOTION_MEMBERS_ID=${{ secrets.NOTION_MEMBERS_ID }} --build-arg NOTION_TOKEN=${{ secrets.NOTION_TOKEN }} --build-arg NOTION_PROJECTS_ID=${{ secrets.NOTION_PROJECTS_ID }} --build-arg NOTION_TEAMS_ID=${{ secrets.NOTION_TEAMS_ID}} --build-arg NOTION_HOMEPAGE_ID=${{ secrets.NOTION_HOMEPAGE_ID}} --remote-only --config fly.staging.toml
run: flyctl deploy --build-arg ANTON=${{ secrets.ANTON }} --build-arg WEBFORMS_TOKEN=${{ secrets.WEBFORMS_TOKEN }} --build-arg NOTION_MEMBERS_ID=${{ secrets.NOTION_MEMBERS_ID }} --build-arg NOTION_TOKEN=${{ secrets.NOTION_TOKEN }} --build-arg NOTION_PROJECTS_ID=${{ secrets.NOTION_PROJECTS_ID }} --build-arg NOTION_TEAMS_ID=${{ secrets.NOTION_TEAMS_ID}} --build-arg NOTION_HOMEPAGE_ID=${{ secrets.NOTION_HOMEPAGE_ID}} --build-arg NOTION_REFRESH_ID=${{ secrets.NOTION_REFRESH_ID}} --remote-only --config fly.staging.toml
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ ARG NOTION_MEMBERS_ID
ARG NOTION_PROJECTS_ID
ARG NOTION_TEAMS_ID
ARG NOTION_HOMEPAGE_ID
ARG NOTION_REFRESH_ID


# Set build-time environment variables
Expand All @@ -32,6 +33,7 @@ ENV NOTION_MEMBERS_ID=${NOTION_MEMBERS_ID}
ENV NOTION_PROJECTS_ID=${NOTION_PROJECTS_ID}
ENV NOTION_TEAMS_ID=${NOTION_TEAMS_ID}
ENV NOTION_HOMEPAGE_ID=${NOTION_HOMEPAGE_ID}
ENV NOTION_REFRESH_ID=${NOTION_REFRESH_ID}



Expand Down
Loading

0 comments on commit 5a82cd7

Please sign in to comment.