function
/usr/local/lib/janet/joy/env.janet on line 28 , column 1
(env key )
Returns a key from either a .env file or the system 's environment
Example:
Given a .env file or a system env like this
JOY_ENV=development
(env :joy-env ) => "development"
# From: https://codeberg.org/veqq/janetdocs/src/commit/54a964d1a35920af2655c4932a9b51379e8b9380/main.janet#L30
# where in .env you have:
# DATABASE_URL=examples-db.sqlite3
# PORT=9025
(defn main [& args ]
(joy/db/connect (joy/env :database-url ))
(server app (joy/env :port ) "0.0.0.0" )
(joy/db/disconnect ))