Setup
No backlinks found.
No backlinks found.
No backlinks found.
This post was written when I had little experience with Node.js. This is not an advisable way. This post simply serves as a departure post for my journey.
I have used AWS Elastic Beanstalk for a while and figured Heroku has several advantages over AWS. So I have migrated my AWS EB app called KMLA Forms to Heroku. For your information, KMLA Forms is a web app that simplifies writing necessary official documents in my school, KMLA.
Few advantages I found:
I had to make only minimal changes to app.js and package.json.
// ...
http.createServer(app).listen(8081, '0.0.0.0')
console.log('Server up and running at http://0.0.0.0:8081')// ...
const port = process.env.PORT || 8000
// ...
app.listen(port, () => { console.log('App is running on port ' + port)})Also, I have added "start": "node app.js" in package.json. Codes are on GitHub, and the web is launched here.
// ...
http.createServer(app).listen(8081, '0.0.0.0')
console.log('Server up and running at http://0.0.0.0:8081')// ...
const port = process.env.PORT || 8000
// ...
app.listen(port, () => { console.log('App is running on port ' + port)})