fix(deploy): экранирование перевода строки в python-подстановке .env
This commit is contained in:
+1
-2
@@ -783,8 +783,7 @@ template_path, pairs_path = sys.argv[1], sys.argv[2]
|
|||||||
template = open(template_path, encoding="utf-8").read()
|
template = open(template_path, encoding="utf-8").read()
|
||||||
values = {}
|
values = {}
|
||||||
for line in open(pairs_path, encoding="utf-8"):
|
for line in open(pairs_path, encoding="utf-8"):
|
||||||
line = line.rstrip("
|
line = line.rstrip("\n")
|
||||||
")
|
|
||||||
if "=" not in line:
|
if "=" not in line:
|
||||||
continue
|
continue
|
||||||
key, value = line.split("=", 1)
|
key, value = line.split("=", 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user