Update path

This commit is contained in:
Gabriel Augendre 2022-07-06 00:06:06 +02:00
parent 40d6c655f1
commit 5a31123f93

View file

@ -78,7 +78,7 @@ def publish(ctx: Context) -> None:
@task
def deploy(ctx: Context) -> None:
ctx.run("ssh ubuntu /home/gaugendre/checkout/update", pty=True, echo=True)
ctx.run("ssh ubuntu /mnt/data/checkout/update", pty=True, echo=True)
@task
@ -104,8 +104,8 @@ def beam(ctx: Context) -> None:
@task
def download_db(ctx: Context) -> None:
with ctx.cd(BASE_DIR):
ctx.run("scp ubuntu:/home/gaugendre/checkout/db/db.sqlite3 ./db/db.sqlite3")
ctx.run("scp ubuntu:/mnt/data/checkout/db/db.sqlite3 ./db/db.sqlite3")
ctx.run("rm -rf src/media/")
ctx.run("scp -r ubuntu:/home/gaugendre/checkout/media/ ./src/media")
ctx.run("scp -r ubuntu:/mnt/data/checkout/media/ ./src/media")
with ctx.cd(SRC_DIR):
ctx.run("./manage.py changepassword gaugendre", pty=True)