Skip to content

Commit 32c30d1

Browse files
committed
Move .env setup to script and update Makefile
1 parent af8e62a commit 32c30d1

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/setup_env.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#! /usr/bin/env bash
2+
3+
if [ ! -f .env ];
4+
then
5+
cp .env.example .env
6+
fi

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
install:
22
pip install -e ".[dev]" --config-settings editable_mode=compat
3-
if [ ! -f .env ]; then cp .env.example .env; fi
3+
bash .github/setup_env.sh
44

55
debug:
66
FLASK_APP=policyengine_api.api FLASK_DEBUG=1 flask run --without-threads

0 commit comments

Comments
 (0)