|
@@ -19,7 +19,7 @@ Add the `MORPH_API_KEY` to your `.profile` or `.bash_profile` file or similar as |
|
|
### Build - do this every time |
|
|
### Build - do this every time |
|
|
|
|
|
|
|
|
1. `$ bundle exec bin/download` - gets the latest data from the scraper's API |
|
|
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. |
|
|
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` |
|
|
2. Click `New site from Git` |
|
|
3. Connect your GitHub account. |
|
|
3. Connect your GitHub account. |
|
|
4. Choose the `adrianshort/kiosks` repo to deploy, or your own fork of it. |
|
|
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` |
|
|
6. Click `Show advanced` and create a `New variable` |
|
|
7. Key: `MORPH_API_KEY`, Value: `123456abcdef` (use the actual key value given by Morph) |
|
|
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. |
|
|
8. Click `Deploy`. Netlify will now build and deploy the site. |
|
|