using enviroment var for connection to database

9 views
Skip to first unread message

giorgio.s...@gmail.com

unread,
Aug 12, 2021, 9:17:58 AMAug 12
to Xataface
is it possible to user an env var   instead     using conf.ini for connection to database?

Steve Hannah

unread,
Aug 12, 2021, 9:23:48 AMAug 12
to xata...@googlegroups.com
Yes.  Prefix your host/user/pass values in your conf.ini file with a dollar sign.

[_database]
  host=$MY_HOST
  user=$MY_USER
  password=$MY_PASS

Will use environment vars MY_HOST, MY_USER, and MY_PASS for the host username and password.

On Thu, Aug 12, 2021 at 6:17 AM giorgio.s...@gmail.com <giorgio.s...@gmail.com> wrote:
is it possible to user an env var   instead     using conf.ini for connection to database?

--
You received this message because you are subscribed to the Google Groups "Xataface" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xataface+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xataface/cd27352b-41b9-4fc7-ac2a-4edab6f3104fn%40googlegroups.com.


--
Steve Hannah
Web Lite Solutions Corp.
Reply all
Reply to author
Forward
0 new messages