^
This commit is contained in:
parent
8c5a34f87a
commit
f98a42768d
2 changed files with 13 additions and 0 deletions
|
@ -18,6 +18,18 @@ from sentry_sdk.integrations.celery import CeleryIntegration
|
|||
from sentry_sdk.integrations.django import DjangoIntegration
|
||||
|
||||
|
||||
try:
|
||||
from decouple import RepositoryEnv
|
||||
file_path = os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))
|
||||
#print("{}/.env".format(file_path))
|
||||
for k,v in RepositoryEnv("{}/.env".format(file_path)).data.items():
|
||||
print(k, v)
|
||||
os.environ[k] = v
|
||||
except Exception as e:
|
||||
#print(e)
|
||||
pass
|
||||
|
||||
|
||||
def get_list(text):
|
||||
return [item.strip() for item in text.split(",")]
|
||||
|
||||
|
|
|
@ -76,6 +76,7 @@ while [ -n "$1" ]; do # while loop starts
|
|||
-g)
|
||||
if [ "$2" = "" ]; then
|
||||
GRD="yes"
|
||||
print_status "Graceful database removal selected."
|
||||
else
|
||||
GRD="$2"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue