Skip to content

Commit

Permalink
Fix levureAppGetENV() example
Browse files Browse the repository at this point in the history
  • Loading branch information
trevordevore committed Oct 9, 2019
1 parent 3c5a060 commit e5556a1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions framework/levure.livecodescript
Expand Up @@ -730,11 +730,11 @@ end levureAppPrintConfig


/**
Summary: Returns an environmental variable stored in the `.env` file.
Summary: Returns the environmental variables stored in the `.env` file.

Description:
During development you can place an `.env` file alongside the `app.yml` file. The format is
a key=value pair, one per line. This function will return a key value.
a key=value pair, one per line. This function will return an array of key/values.

Use the `.env` file to store values you don't want stored in a git repository. For example,
you should store the `password` used to password protect your application in the `.env` file.
Expand All @@ -746,7 +746,8 @@ your application.

Example:
# Assumes your .env file has a PASSWORD=VALUE line in it
put levureAppGetENV("password") into tPassword
put levureAppGetENV() into tEnvA
put tEnvA["PASSWORD"]

Returns: String
*/
Expand Down

0 comments on commit e5556a1

Please sign in to comment.