DEV Community

loading...

Discussion on: host vue js build app

Collapse
christiankozalla profile image
Christian Kozalla

Here are the steps how I usually deploy a Vue app to surge

With the surge CLI installed globally

npm install -g surge

  1. npm run build
  2. cd dist
  3. surge

Command 3. tells surge to deploy the contents of the current folder (dist)
Then you'll be asked to choose a subdomain. For example yourproject.surge.sh

Your Vue app will be deployed to that domain. 😊

Collapse
arabelhousseyn profile image
elhousseyn arab Author • Edited

it's like heroku but i want to publish it on my own shared hosting cpanel when i deploy it it show me a blank page