-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Add docker based nginx deployment guide to docs #3323
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
Conversation
docs/guide/deployment.md
Outdated
|
||
### Docker (Nginx) | ||
|
||
Deploying your application using nginx inside of docker can be done easily with a minor modification of the nginx configuration. |
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's unclear when you say minor modification of the nginx configuration, it would be nice if explicitly specify what we mean by the nginx configuration. Also, we can drop easily.
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.
I removed some of the confusing language.
docs/guide/deployment.md
Outdated
|
||
4. Create a `nginx.conf` file in the root of your project | ||
|
||
This is a simple `nginx` configuration that falls back to the root `index.html` page for `404's`. This is necessary when using `pushState()` based routing. |
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 can be reworded to:
Following nginx
configuration serves root index.html
for page not found
errors.
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.
Done
The process looks good to me. 👍 |
@cregetycreg I don't understand the part with the 50x errors, if we don't have a server how is it possible to have a 50x error ? |
This guide shows how to build a docker image to run a vue-cli based application with nginx. It has an example nginx config that does the appropriate pushState() based routing fallbacks for 404's.