Tooljet Template Bug (Unable to connect to DB) - Found a Solutions (Fixed)
M
Muhammad Ahsan Shaikh
Hi kabiru sambo - We have fixed the template. Please deploy it from here.
https://github.com/easypanel-io/templates/pull/1079
k
kabiru sambo
Muhammad Ahsan Shaikh Thank you! You're a genius.
k
kabiru sambo
even if it technically worked..
There are alot of missing pieces and errors here and there..
Ranging from missing WorkFlow module to Tooljet database error.
Please can you help fix?
Muhammad Ahsan Shaikh
k
kabiru sambo
There was a problem with the configuration script as it was missing or there was a mis-match of environment variable. I was able to troubleshoot and I got mine working by manually add these environment variables.
General Application Variables
TOOLJET_HOST=https://$(PRIMARY_DOMAIN)
SERVER_HOST=$(PRIMARY_DOMAIN)
LOCKBOX_MASTER_KEY=
SECRET_KEY_BASE=
ORM_LOGGING=all
CHECK_FOR_UPDATES=true
ENABLE_MULTIPLAYER_EDITING=true
USER_SESSION_EXPIRY=2880
DEPLOYMENT_PLATFORM=docker
SERVE_CLIENT=true
PORT=80
Variables for the main application (ToolJet's internal configuration)
TOOLJET_DB_HOST=
TOOLJET_DB_NAME=
TOOLJET_DB_USER=postgres
TOOLJET_DB_PASS=
TOOLJET_DB_PORT=
Variables for the database setup scripts (npm run db:create)
PG_HOST=
PG_DB=
PG_USER=postgres
PG_PASS=