Welcome Guest, Not a member yet? Register   Sign In
How to set sqlite db path through ROOTPATH variable in .env file
#3

(This post was last modified: 09-08-2021, 12:37 AM by dgvirtual.)

(09-08-2021, 12:25 AM)paulbalandan Wrote: Since the .env file is a text file, you cannot use your constants there. You need to write the values themselves (in this case the value of ROOTPATH)

Agh thank you, that makes sense... and is so unfortunate. Can I perhaps use relative path? No, just checked, neither

Code:
database.default.database = 'writable/db.sqlite3'

nor

Code:
database.default.database = './writable/db.sqlite3'

work...
==

Donatas G.
Reply


Messages In This Thread
RE: How to set sqlite db path through ROOTPATH variable in .env file - by dgvirtual - 09-08-2021, 12:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB