From 8df98ff56a5a9a8edd59f2b11317de72bb7d3d21 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Tue, 22 Jan 2019 23:29:34 +0000 Subject: [PATCH] Rename build command --- README.md | 4 ++-- bin/{petrify => build} | 0 bin/deploy | 2 +- netlify.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename bin/{petrify => build} (100%) diff --git a/README.md b/README.md index 87b06d7..5695236 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Add the `MORPH_API_KEY` to your `.profile` or `.bash_profile` file or similar as ### Build - do this every time 1. `$ bundle exec bin/download` - gets the latest data from the scraper's API -2. `$ bundle exec bin/petrify` - builds the static site +2. `$ bundle exec bin/build` - builds the static site The built site is now in the `_site` directory. @@ -35,7 +35,7 @@ Use Morph to send a webhook HTTP POST request to [Netlify](https://www.netlify.c 2. Click `New site from Git` 3. Connect your GitHub account. 4. Choose the `adrianshort/kiosks` repo to deploy, or your own fork of it. -5. Use these settings: Branch to deploy: `master`, build command: `bundle exec bin/download && bundle exec bin/petrify`, publish directory: `_site` +5. Use these settings: Branch to deploy: `master`, build command: `bundle exec bin/download && bundle exec bin/build`, publish directory: `_site` 6. Click `Show advanced` and create a `New variable` 7. Key: `MORPH_API_KEY`, Value: `123456abcdef` (use the actual key value given by Morph) 8. Click `Deploy`. Netlify will now build and deploy the site. diff --git a/bin/petrify b/bin/build similarity index 100% rename from bin/petrify rename to bin/build diff --git a/bin/deploy b/bin/deploy index 559ab62..deb2945 100755 --- a/bin/deploy +++ b/bin/deploy @@ -8,7 +8,7 @@ echo "Downloading from Morph API" bundle exec bin/download echo "Building site" -bundle exec bin/petrify +bundle exec bin/build cd _site git commit -am "Update content" diff --git a/netlify.toml b/netlify.toml index f4d42cc..b155e7d 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,7 +1,7 @@ [build] base = "." publish = "_site" - command = "bundle exec bin/download && bundle exec bin/petrify" + command = "bundle exec bin/download && bundle exec bin/build" [template] incoming-hooks = ["Morph scrape completed"]