Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment Plan #2

Open
maozhenyu123 opened this issue Oct 13, 2021 · 0 comments
Open

Deployment Plan #2

maozhenyu123 opened this issue Oct 13, 2021 · 0 comments

Comments

@maozhenyu123
Copy link
Collaborator

maozhenyu123 commented Oct 13, 2021

Current Plan

  1. Github CI gets triggered every time once there is new commit / merge on master / staging branch.
  2. Github CI worker builds the frontend, and deploy it into classtranscribe.github.io/static/v-{hash}/*
  3. Github CI worker updates the config.js, so that the index.html will use the latest version of frontend build

Downgrade

We manually change the config.js currentVersion variable to a previous version

Server Communication

Needs CORS header: https://classtranscribe.github.io
Cookie settings require SameSite policy, allowing classtranscribe.github.io to access

Pro

  1. Easy to deploy
  2. Costless
  3. More reliable (frontend only)

Con

  1. Cross-Site issue
  2. Absolute path issue
  3. Only one github page per org

Ideal Plan

  1. Github CI gets triggered every time once there is new commit / merge on master / staging branch.
  2. Github CI worker builds the frontend, and deploy it into Amazon S3 (with Cloudfront) etc.
  3. Deploy version number/html into our backend server, import js bundle from the CDN

Pro

  1. No cross site issue

Con

  1. Reliability
  2. Needs more work to deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant