From d80b6b9819f413f81303b72e52223b61fc45f04e Mon Sep 17 00:00:00 2001 From: Emeka Onu Date: Thu, 14 Mar 2019 14:24:06 +0100 Subject: [PATCH 1/2] Add deployment guide for Render --- docs/guide/deployment.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/guide/deployment.md b/docs/guide/deployment.md index f6e44b250c..1c980450b4 100644 --- a/docs/guide/deployment.md +++ b/docs/guide/deployment.md @@ -408,3 +408,24 @@ Deploy your application using nginx inside of a docker container. curl localhost:8080 # ... ``` + +### Render + +On Render, create a new Web Service, and give Render’s GitHub app permission to access your new repo. + +Use the following values during creation: + + - **Environment:** `Static Site` + - **Build Command:** `npm run build` or `yarn build` + - **Publish directory:** `dist` + +That’s it! Your app will be live on your Render URL as soon as the build finishes. + +In order to receive direct hits using `history mode` on Vue Router, you need to add the following redirect rules in the `Redirects` tab under your site. + +Select `Redirects`, click on `Add Redirect Rule` button and + + - **Source Path:** `/*` + - **Destination Path:** `/index.html` + - **Status:** `200` + From 8af0dd63dd8bccfb300202a841969fc3b27af997 Mon Sep 17 00:00:00 2001 From: Emeka Onu Date: Thu, 14 Mar 2019 14:51:57 +0100 Subject: [PATCH 2/2] Update deployment.md --- docs/guide/deployment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/deployment.md b/docs/guide/deployment.md index 1c980450b4..10f0a2f68b 100644 --- a/docs/guide/deployment.md +++ b/docs/guide/deployment.md @@ -411,7 +411,7 @@ Deploy your application using nginx inside of a docker container. ### Render -On Render, create a new Web Service, and give Render’s GitHub app permission to access your new repo. +On Render, create a new Web Service, and give Render’s GitHub app permission to access your repo. Use the following values during creation: