From 017a73307d849322ef3e6e60758ffb0885a0cfae Mon Sep 17 00:00:00 2001 From: HugoPeters1024 Date: Thu, 15 Dec 2022 13:59:19 +0100 Subject: [PATCH] make a note about oxymoronic deploy mechanics --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 45a24d1..7f188fe 100644 --- a/README.md +++ b/README.md @@ -28,3 +28,14 @@ You can debug queries by typing localhost:8000/___graphql in your explorer. Also pretty simple, run `npm run build` and copy the files to a server. +## Automatic deployment + +As part of the build script, artifacts are pushed to AWS. Then a deployment script is triggered on the server that attempts to download the +latest build from AWS and deploy it. This is triggered on both development and production. However, this deploy script will error early if the +branch name does not match `master` or `development` respectively. Thus, it is expected that the deploy on production fails with the error: + +``` +fatal error: An error occurred (404) when calling the HeadObject operation: Key ".tar.gz" does not exist +``` + +...because grepping for master did not match anything. If you want to deploy on production you must merge to master.