Answer the question
In order to leave comments, you need to log in
Error accessing .env?
There are two files:
1) .env
2) app.js
PORT=3000
const express = require('express')
const app = express()
require('dotenv').config();
const port = process.env.PORT;
app.use('/', function (request, response) {
response.send('Главная страница')
})
app.listen(port)
const express = require('express')
const app = express()
app.use('/', function (request, response) {
response.send('Главная страница')
})
app.listen(3000)
"502 bad gateway"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question