Check out git submodules. (#36)

Git submodules can be a convenient way of including some 3rd party dependency/repo in your app. With this change piku automatically checks out any submodules included in the repository.
pull/35/head^2
Chris McCormick 2019-06-20 21:59:38 +08:00 zatwierdzone przez Rui Carmo
rodzic c8328a3d93
commit 0ef930f57d
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -316,6 +316,8 @@ def do_deploy(app, deltas={}):
echo("-----> Deploying app '{}'".format(app), fg='green')
call('git pull --quiet', cwd=app_path, env=env, shell=True)
call('git checkout -f', cwd=app_path, env=env, shell=True)
call('git submodule init', cwd=app_path, env=env, shell=True)
call('git submodule update', cwd=app_path, env=env, shell=True)
if not exists(log_path):
makedirs(log_path)
workers = parse_procfile(procfile)