From c67dcdc26686812cea6984a78a5f6a567ab619c9 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 6 Jul 2022 00:05:51 +0200 Subject: [PATCH] Update path --- tasks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks.py b/tasks.py index 6559675..7683586 100644 --- a/tasks.py +++ b/tasks.py @@ -72,7 +72,7 @@ def publish(ctx: Context) -> None: @task def deploy(ctx: Context) -> None: - ctx.run("ssh ubuntu /home/gaugendre/blog/update", pty=True, echo=True) + ctx.run("ssh ubuntu /mnt/data/blog/update", pty=True, echo=True) @task @@ -98,9 +98,9 @@ def beam(ctx: Context) -> None: @task def download_db(ctx: Context) -> None: with ctx.cd(BASE_DIR): - ctx.run("scp ubuntu:/home/gaugendre/blog/db/db.sqlite3 ./db/db.sqlite3") + ctx.run("scp ubuntu:/mnt/data/blog/db/db.sqlite3 ./db/db.sqlite3") ctx.run("rm -rf src/media/") - ctx.run("scp -r ubuntu:/home/gaugendre/blog/media/ ./src/media") + ctx.run("scp -r ubuntu:/mnt/data/blog/media/ ./src/media") with ctx.cd(SRC_DIR): ctx.run("./manage.py two_factor_disable gaugendre", pty=True) ctx.run("./manage.py changepassword gaugendre", pty=True)