Naveed Sheriffdeen
Naveed Sheriffdeen

Reputation: 980

Vue js SPA hosting

Is there a good and easy to understand tutorial on hosting vue.js SPA application. I have currently uploaded the complete project to the server through Filezilla. And I hadn't run npm run build prior to hosting the system. Can I run npm run build locally and then upload the dist folder to the already hosted application. Any help will be much appreciated. Thanks

Upvotes: 1

Views: 579

Answers (2)

CaShiS
CaShiS

Reputation: 235

You should run npm run build next upload files from folder dist to server. In dist folder there will be all files which are required to SPA correct working.

Upvotes: 0

FINDarkside
FINDarkside

Reputation: 2435

Yes, just run npm run build on the client and then upload the dist folder to the server. That's the normal use case, there's usually no reason to move the whole project with all the dependencies to the server.

Upvotes: 3

Related Questions