Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lipelaw's avatar

How to deploy a Vuejs application (browserify) in Heroku?

I raised the server with express, but using a scheme for the webpack because I found nothing related to browserify, follows the code...

// server.js
var express = require('express');
var path = require('path');
var serveStatic = require('serve-static');
app = express();
app.use(serveStatic(__dirname + "/dist"));
var port = process.env.PORT || 5000;
app.listen(port);
console.log('server started '+ port);

It's all set up correctly, but it's only showing up...

Cannot GET /

0 likes
0 replies

Please or to participate in this conversation.