Skip to content

Deployment

Victor Lin edited this page Oct 27, 2022 · 14 revisions

Git

main is the default branch which all pull requests should point to.

Amplify

All deployments are done via AWS Amplify, which is a service that links branches to separate hosted builds.

Documentation

Linked branches:

All other branches will automatically be linked to Amplify, but a subdomain will have to be manually linked (see below).

New changes in linked branches will automatically trigger Amplify builds.

Linking a subdomain

  1. Log in and navigate to the serratus.io Amplify app.
  2. Go to App settings > Domain management and select the Manage subdomains button for serratus.io.
  3. Select Add. Enter a subdomain (prepend dev-) and select a branch to link. Select Update at the bottom.

Amplify config

  • Redirect
    • </^((?!\.(css|gif|ico|jpg|js|png|txt|svg|woff|ttf|conf|json|tsv|map)$).)*$/> : /index.html : 200 (Rewrite)

Caveats

Resources

PR merging:

Amplify Redirect:

Clone this wiki locally