mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-11-22 08:08:04 +01:00
Update path
This commit is contained in:
parent
40d6c655f1
commit
5a31123f93
1 changed files with 3 additions and 3 deletions
6
tasks.py
6
tasks.py
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue