javascript - Deploy node.js application to elastic beanstalk (using express) -
i've been having issues deploying app elastic beanstalk day today. have following project structure (single page app built react)
dist/ index.html bundle.js package.json app.js
i zip , upload elastic beanstalk running node.js
here app.js
var express = require('express'); var app = express(); app.use(express.static(__dirname + '/dist')); app.get('/*', function(req, res){ res.sendfile(__dirname + '/dist/index.html'); }); app.listen(8080, function() { console.log('listening on port: ' + 8080); });
locally, wоrks fine, aws thrоws warnings.
for comes across similar issue, turned out related of dependencies used, worth downgrading them, , not use ^ version
.
you able find further info on via logs eb produces.
Comments
Post a Comment