Vue project deployed to the server

Vue project deployed to the server

Bale

In the project packing input terminal command: cnpm run build.
After the project will be one of the dist folder is packaged folder. Inside there is a static and index.html
Here Insert Picture Description
to the server to upload the dist folder on it.

Upload

The dist folder to the www at home there, where the project is to deploy
Here Insert Picture Description
and configure the site, at site inside etc files under the httpd, site create their own folders, designed to configure the site, a project conf file
Here Insert Picture Description
content directly copy content before conf file, and then change it in the project path and domain name on it.
Here Insert Picture Description

note

Pictures do not have resources when naming Chinese, because Chinese server access, then the picture may not show up

FlashFXP Configuration Editor

File associations point option under
Here Insert Picture Description
point plus the new
Here Insert Picture Description
lower mark must fill / election.
Here Insert Picture Description
It is over

Published 31 original articles · won praise 75 · views 6330

Guess you like

Origin blog.csdn.net/xqainyo/article/details/105367591