'mern Heroku deply issue

i'm trying to deploy my mern app even my env variables are set and scripts is created in package.json . ican't find a solution here's my code const port = process.env.PORT || 5000 http.listen(port, () => { console.log('Server is running on port', port) })



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source