summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md23
-rw-r--r--src/config.js2
2 files changed, 7 insertions, 18 deletions
diff --git a/README.md b/README.md
index f324306..b70ac19 100644
--- a/README.md
+++ b/README.md
@@ -6,17 +6,16 @@ An interactive rain radar clone running on Mapbox GL, see it live at: [https://g
The entire service is served off of static assets located in S3 buckets:
- - A static main index page, React-based JS bundle and other static assets that are uploaded upon deploy
- - Radar images that are collected and indexed every minute by a Python recurring task running on AWS Lambda
+- A static main index page, React-based JS bundle and other static assets that are uploaded upon deploy
+- Radar images that are collected and indexed every minute by a Python recurring task running on AWS Lambda
For some architectural notes on the deployment process go read https://yuv.al/blog/an-architecture-for-periodically-updating-static-websites/
## Prerequisites
- - Node.js
- - Yarn
- - Serverless, for deploying the AWS Lambda task
- - AWS CLI, for static asset deployment to S3
+- Node.js
+- Yarn
+- Serverless, for deploying the AWS Lambda task
## Dev
@@ -29,17 +28,7 @@ $ yarn start
### Deploy
-Build the JS bundle:
-
-```bash
-$ yarn build
-```
-
-Deploy new static assets to S3:
-
-```bash
-$ yarn run deploystatic
-```
+Deployment is handled transparently via Netlify.
### Cron Task
diff --git a/src/config.js b/src/config.js
index d86264b..f74382c 100644
--- a/src/config.js
+++ b/src/config.js
@@ -1,6 +1,6 @@
const hostname = window && window.location && window.location.hostname;
-const PRODUCTION = hostname.includes("geshem.space");
+const PRODUCTION = hostname.includes("geshem");
const IMAGES_BASE_URL = PRODUCTION ? "https://imgs.geshem.space" : "";