Apple
March 7, 2022, 11:18am
5
Mr.Rubi:
I racked my brain for many hours, rechecked the expressions many times, and then checked the API many times. And having found nothing, I got into a dead end. And the problem was elementary.
Looks like I just had a similar moment
So, the question is, Wappler, did you break environment variables? NodeJS + Wappler 4.6.3
(spoiler: YES) edit: no
db.json:
# cat app/modules/connections/db.json
{
"name": "db",
"module": "dbconnector",
"action": "connect",
"options": {
"client": "postgres",
"connection": {
"host": "{{$_ENV[DB_HOST]}}",
"port": "{{$_ENV[DB_PORT]}}",
"user": "{{$_ENV[DB_USER]}}",
"password": "{{$_ENV[DB_PASS]}}",
"database": "{{$_ENV[DB_NAME]}}"
}
}
}
Startu…
Happy to help! I guessed it was missing libraries due to the "Formatter (...) doesn't exist for type array", which is a kind of error which I think I saw when handling custom formatters
1 Like