This commit is contained in:
Xuan Loi
2026-01-09 17:25:23 +07:00
commit ae1ea57130
315 changed files with 57694 additions and 0 deletions

13
envprod.py Executable file
View File

@@ -0,0 +1,13 @@
def search_text(file, text, new_text):
f = open(file, 'r')
content = f.read()
print(text, content.find(new_text))
content = content.replace(text, new_text)
f.close()
with open(file, 'w') as f:
f.write(content)
file = './plugins/02-connection.js'
text1 = "mode = 'dev'"
newtext1 = "mode = 'prod'"
search_text(file, text1, newtext1)