I'm trying to send parameter to nodejs with restify, but it's always getting undefined
I'm sending more or less like this:
$.ajax({
url : 'http://localhost:8080/api',
type: 'post',
dataType: 'json',
data:...
Following this tutorial of Vedovelli on node with restify and mysql, implemented on the server with pm2.
Only after a few days the connection started to be refused
You're showing this message:
errno: 'ECONNREFUSED',
code: 'ECNNREFUSE...
How can I configure the .env file to be prepared for different connections, such as:
If I want production I go there in the .env file and change the DB_HOST = 185.565.55.5
If I want to test I go there in the .env file and change the DB_HOS...