-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Add a deployment guide for Render #3636
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -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. | ||||||
|
||||||
Select `Redirects`, click on `Add Redirect Rule` button and | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
- **Source Path:** `/*` | ||||||
- **Destination Path:** `/index.html` | ||||||
- **Status:** `200` | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right now There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @NataliaTepluhina! Will submit the suggested changes very soon. |
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems Render changed its UI a bit 😅