We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb39a0d commit 6cc42edCopy full SHA for 6cc42ed
demo/static/src/app.css
fabfile.py
@@ -1,8 +1,15 @@
1
from fabric import task
2
-
+from invoke import run
3
+from patchwork.transfers import rsync
4
5
@task
6
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
+
13
with ctx.prefix("source ~/.virtualenvs/inertia/bin/activate"):
14
with ctx.cd("apps/django-inertia-demo"):
15
ctx.run("git pull")
@@ -12,5 +19,3 @@ def deploy(ctx):
19
ctx.run("python manage.py collectstatic --noinput")
20
ctx.run("sudo supervisorctl restart inertia")
21
16
0 commit comments