Porównaj commity

...

2 Commity

Autor SHA1 Wiadomość Data
Rui Carmo 7eae80a795
Revert f-strings
We've not committed to standardising on those yet
2023-09-18 15:38:22 +01:00
Rui Carmo c05a3a875b
Create app DATA_ROOT 2023-09-18 15:36:42 +01:00
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -1590,6 +1590,7 @@ def cmd_git_hook(app):
app = sanitize_app_name(app)
repo_path = join(GIT_ROOT, app)
app_path = join(APP_ROOT, app)
data_path = join(DATA_ROOT, app)
for line in stdin:
# pylint: disable=unused-variable
@ -1598,7 +1599,10 @@ def cmd_git_hook(app):
if not exists(app_path):
echo("-----> Creating app '{}'".format(app), fg='green')
makedirs(app_path)
call('git clone --quiet {} {}'.format(repo_path, app), cwd=APP_ROOT, shell=True)
# The data directory may already exist, since this may be a full redeployment (we never delete data since it may be expensive to recreate)
if not exists(data_path):
makedirs(data_path)
call("git clone --quiet {} {}".format(repo_path, app), cwd=APP_ROOT, shell=True)
do_deploy(app, newrev=newrev)