Merge pull request #56 from mariolopjr/master

Add Simple Netlify Deploy Support
This commit is contained in:
Alexander Shelepenok 2018-02-21 17:25:40 +03:00 committed by GitHub
commit 1e2b739b55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -65,6 +65,14 @@ Install this starter (assuming Gatsby is installed) by running from your CLI:
#### Building #### Building
`gatsby build` `gatsby build`
#### Deploy with Netlify
Netlify CMS can run in any frontend web environment, but the quickest way to try it out is by running it on a pre-configured starter site with Netlify. Use the button below to build and deploy your own copy of the repository:
<a href="https://app.netlify.com/start/deploy?repository=https://github.com/alxshelepenok/gatsby-starter-lumen" target="_blank"><img src="https://www.netlify.com/img/deploy/button.svg" alt="Deploy to Netlify"></a>
After clicking that button, youll authenticate with GitHub and choose a repository name. Netlify will then automatically create a repository in your GitHub account with a copy of the files from the template. Next, it will build and deploy the new site on Netlify, bringing you to the site dashboard when the build is complete. Next, youll need to set up Netlifys Identity service to authorize users to log in to the CMS.
## Screenshot ## Screenshot
![](http://i.imgur.com/422y5GV.png) ![](http://i.imgur.com/422y5GV.png)

6
netlify.toml Normal file
View File

@ -0,0 +1,6 @@
[build]
publish = "public"
command = "gatsby build"
[build.environment]
YARN_VERSION = "1.3.2"
YARN_FLAGS = "--no-ignore-optional"