joy-framework / joy

A full stack web framework written in janet

Home Page:https://joy.swlkr.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

db/connect does not use the .env file as documented

LeviSchuck opened this issue · comments

commented

In the docs
https://github.com/joy-framework/joy/blob/master/docs/database-queries.md

The code

(db/connect)

Should be reading either DATABASE_URL from the environment, or look in the .env file with (env :database-url)

Instead, what I must do to use the .env file is use

(db/connect (env :database-url))

I am able to start the application with

DATABASE_URL=./development.sqlite3  joy server

while using

(db/connect)

And I am able to start the application with

 joy server

while using

(db/connect (env :database-url))