From b2c061b8428b81f84fd81c7fe86048412be7b320 Mon Sep 17 00:00:00 2001 From: Jon Goldberg Date: Wed, 3 Jan 2018 04:23:49 -0500 Subject: [PATCH] Support a .env file, include a .env.example --- .env.example | 3 +++ .gitignore | 1 + getmemberships.php | 7 ++++++- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..1b722a1 --- /dev/null +++ b/.env.example @@ -0,0 +1,3 @@ +REDMINE_URL="https://hq.example.com" +REDMINE_API_KEY="abc123" +DEBUG_MODE=FALSE diff --git a/.gitignore b/.gitignore index ca08cc4..0c14092 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /vendor/ /data/*.csv +.env diff --git a/getmemberships.php b/getmemberships.php index d926e6b..7529641 100755 --- a/getmemberships.php +++ b/getmemberships.php @@ -2,7 +2,12 @@ load(); + +$client = new Redmine\Client(getenv('REDMINE_URL'), getenv('REDMINE_API_KEY')); $client->setCheckSslCertificate(true); $limit = 100;