Ver a proveniência

Rename build command

main
Adrian Short há 6 anos
ascendente
cometimento
8df98ff56a
4 ficheiros alterados com 4 adições e 4 eliminações
  1. +2
    -2
      README.md
  2. +0
    -0
      bin/build
  3. +1
    -1
      bin/deploy
  4. +1
    -1
      netlify.toml

+ 2
- 2
README.md Ver ficheiro

@@ -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 Ver ficheiro


+ 1
- 1
bin/deploy Ver ficheiro

@@ -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 Ver ficheiro

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


Carregando…
Cancelar
Guardar