Skip to content

Commit 6cc42ed

Browse files
committed
update changes
1 parent cb39a0d commit 6cc42ed

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

demo/static/src/app.css

Lines changed: 0 additions & 12 deletions
This file was deleted.

fabfile.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
from fabric import task
2-
2+
from invoke import run
3+
from patchwork.transfers import rsync
34

45
@task
56
def deploy(ctx):
7+
run("yarn install", echo=True)
8+
run("yarn run build", echo=True)
9+
run("python manage.py collectstatic --noinput", echo=True)
10+
run("find . -name '__pycache__' |xargs rm -rf ", echo=True)
11+
rsync(ctx, "static/", "apps/django-inertia-demo/")
12+
613
with ctx.prefix("source ~/.virtualenvs/inertia/bin/activate"):
714
with ctx.cd("apps/django-inertia-demo"):
815
ctx.run("git pull")
@@ -12,5 +19,3 @@ def deploy(ctx):
1219
ctx.run("python manage.py collectstatic --noinput")
1320
ctx.run("sudo supervisorctl restart inertia")
1421

15-
16-

0 commit comments

Comments
 (0)