Skip to content

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

Merged
merged 3 commits into from
Feb 25, 2019
Merged

Add docker based nginx deployment guide to docs #3323

merged 3 commits into from
Feb 25, 2019

Conversation

cregetycreg
Copy link
Contributor

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.

@znck znck self-requested a review February 19, 2019 14:53

### Docker (Nginx)

Deploying your application using nginx inside of docker can be done easily with a minor modification of the nginx configuration.
Copy link
Member

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.

Copy link
Contributor Author

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.


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.
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@znck
Copy link
Member

znck commented Feb 20, 2019

The process looks good to me. 👍

@haoqunjiang haoqunjiang merged commit 8db6237 into vuejs:docs Feb 25, 2019
@SimonChaumet
Copy link

@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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants