Wikimedia

Rename "PORT" to "DB_PORT"

In .env.example there is a variable named PORT. It provide the details of the database port through which the current backend server can be connected to database server.

In toolforge, on hosting this tool with the variable named PORT in environment file, the tool is not responding to any requests. The exact reason for it is still unknown (There might be some internal configuration issues). So rename the variable PORT to DB_PORT in .env.example file.

On changing the variable PORT to DB_PORT, you also need to replace env('PORT') in settings.py file.

Task tags

  • .env

Students who completed this task

Neilblaze

Task type

  • code Code
close

2019