Dec 21, 2017
0
Level 1
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 /
Please or to participate in this conversation.