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

Add a deployment guide for Render #3636

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 21 additions & 0 deletions docs/guide/deployment.md
Expand Up @@ -408,3 +408,24 @@ Deploy your application using nginx inside of a docker container.
curl localhost:8080
# <!DOCTYPE html><html lang=en>...</html>
```

### Render

On Render, create a new Web Service, and give Render’s GitHub app permission to access your 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.
In order to receive direct hits using `history mode` on Vue Router, you need to add the following redirect rules in the `Redirects/Rewrites` tab under your site.

It seems Render changed its UI a bit 😅


Select `Redirects`, click on `Add Redirect Rule` button and
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Select `Redirects`, click on `Add Redirect Rule` button and
Select `Redirects/Rewrites`, click on `Add Rule` button and


- **Source Path:** `/*`
- **Destination Path:** `/index.html`
- **Status:** `200`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now Status has two options only: Redirect or Rewrite

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @NataliaTepluhina! Will submit the suggested changes very soon.