Browse Source

Rename build command

main
Adrian Short 5 years ago
parent
commit
8df98ff56a
4 changed files with 4 additions and 4 deletions
  1. +2
    -2
      README.md
  2. +0
    -0
      bin/build
  3. +1
    -1
      bin/deploy
  4. +1
    -1
      netlify.toml

+ 2
- 2
README.md View File

@@ -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.


bin/petrify → bin/build View File


+ 1
- 1
bin/deploy View File

@@ -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"



+ 1
- 1
netlify.toml View File

@@ -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"]


Loading…
Cancel
Save