DEV Community


Discussion on: host vue js build app

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

Your Vue app will be deployed to that domain. 😊

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