kopia lustrzana https://github.com/piku/piku
Porównaj commity
2 Commity
fb54058f12
...
7eae80a795
Autor | SHA1 | Data |
---|---|---|
Rui Carmo | 7eae80a795 | |
Rui Carmo | c05a3a875b |
6
piku.py
6
piku.py
|
@ -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)
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue