Skip to content

Commit

Permalink
docs: Add netlify deploy docs to slash docs (#6425)
Browse files Browse the repository at this point in the history
  • Loading branch information
all-seeing-code authored Sep 9, 2020
1 parent 45afae9 commit d94e5da
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions wiki/content/slash-graphql/one-click-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,16 @@ We love building GraphQL apps at Dgraph! In order to help you get started quickl
In order to do a `One-Click Deploy`, please choose the application you wish to deploy from the [Apps](https://slash.dgraph.io/_/one-click) tab in the side bar and click the `Deploy` button.

It will take few minutes while the new back-end spins up. You will be able to see the front-end url under `Details` card on the [Dashboard](https://slash.dgraph.io/_/dashboard) tab in the sidebar.

## Deploying to your own domain.

If you wish to deploy your apps to your own domain, you can do that easily with any of the hosting services. You can follow below steps to deploy your app on [Netlify](https://www.netlify.com/).

1. Fork the github repo of the app you wish to deploy.
2. Link your forked repo to Netlify by Clicking `New Site from Git` and
{{% load-img "/images/importSite.png" "Import Site" %}}
3. After successful import of the forked repository click on `Show advanced` and `New variable`.
4. Add `REACT_APP_GRAPHQL_ENDPOINT` in the key and your graphql endpoint obtained from Slash GraphQL in the value field.
5. Click `Deploy Site` on Netlify Dashboard.
{{% load-img "/images/advanced-SettingsNetlify.png" "Advanced Settings" %}}
6. You can configure [Auth0](https://auth0.com/) steps by following Authorization section of the blogpost [here.](https://dgraph.io/blog/post/surveyo-into/)
Binary file added wiki/static/images/advanced-SettingsNetlify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added wiki/static/images/importSite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d94e5da

Please sign in to comment.