Skip to content

Commit 3d14a56

Browse files
committed
-> Refuse to deploy without a proper version
1 parent 6062bb5 commit 3d14a56

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

idc/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@
159159
print("[ERROR] While trying to set local/developer git version: ")
160160
print(e)
161161
VERSION = "{}.{}.{}".format("local-dev", datetime.datetime.now().strftime('%Y%m%d%H%M'), "unavailable")
162+
else:
163+
print("[ERROR] Application version file not found for test/prod deployment! Exiting...")
164+
exit(1)
162165

163166
APP_VERSION = os.environ.get("APP_VERSION", VERSION)
164167

0 commit comments

Comments
 (0)