You are in flow developing on your local database and you decide to upload everything to heroku and share it with the world. How do you configure your production database? It’s easier than you think. Let’s assume you have already set up your site. If you used the sequelize init command, you will have a…
All posts in express
curl express hello world
The official express.js hello world example may crash on certain deployments that rely on a certain PORT. Make sure you use the PORT set on process.env if it is set. const PORT = process.env.PORT || 3000 Complete example (code): const express = require(‘express’) const app = express() const PORT = process.env.PORT || 3000 app.get(‘/’, (req, res) =>…