Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add netlify deploy docs to slash docs (#6425) #6428

Merged
merged 1 commit into from
Sep 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.