mirror of
https://github.com/umap-project/umap.git
synced 2025-05-04 21:51:50 +02:00
Fabfile: allow to define extra packages to install
This commit is contained in:
parent
5a11034a13
commit
f926126eee
1 changed files with 4 additions and 1 deletions
|
@ -124,7 +124,10 @@ def write_default(ctx):
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def deploy(ctx):
|
def deploy(ctx):
|
||||||
as_umap(ctx, '/srv/umap/venv/bin/pip install umap-project --upgrade')
|
cmd = '/srv/umap/venv/bin/pip install {} --upgrade'
|
||||||
|
as_umap(ctx, cmd.format('umap-project'))
|
||||||
|
if ctx.config.get('extra_packages'):
|
||||||
|
as_umap(ctx, cmd.format(' '.join(ctx.config.extra_packages)))
|
||||||
umap_cmd(ctx, 'migrate')
|
umap_cmd(ctx, 'migrate')
|
||||||
umap_cmd(ctx, 'collectstatic --noinput --verbosity 0')
|
umap_cmd(ctx, 'collectstatic --noinput --verbosity 0')
|
||||||
umap_cmd(ctx, 'storagei18n --verbosity 0')
|
umap_cmd(ctx, 'storagei18n --verbosity 0')
|
||||||
|
|
Loading…
Reference in a new issue