File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 2
2
from invoke import run
3
3
from patchwork .transfers import rsync
4
4
5
- @task (hosts = ["zodman@inertia.opensrc.mx" ,])
6
- def deploy (ctx ):
7
- run ("yarn install" , echo = True )
5
+ @task
6
+ def local (ctx ):
8
7
run ('rm .cache demo/static/src/app.css -rf' , echo = True )
8
+ run ("find . -name '__pycache__' |xargs rm -rf " , echo = True )
9
+ run ("yarn install" , echo = True )
9
10
run ("yarn run build" , echo = True )
10
11
run ("python manage.py collectstatic --noinput" , echo = True )
11
- run ("find . -name '__pycache__' |xargs rm -rf " , echo = True )
12
- rsync (ctx , "static/" , "apps/django-inertia-demo/" )
13
12
13
+ @task (hosts = ["zodman@go.opensrc.mx" ,])
14
+ def deploy (ctx ):
14
15
with ctx .prefix ("source ~/.virtualenvs/inertia/bin/activate" ):
15
16
with ctx .cd ("apps/django-inertia-demo" ):
16
17
ctx .run ("git pull" )
17
18
ctx .run ("pip install -r requirements.txt" )
18
19
ctx .run ("python manage.py migrate" )
19
20
ctx .run ("python populate.py" )
21
+ ctx .run ("python manage.py collectstatic --noinput" )
22
+ rsync (ctx , "static/" , "apps/django-inertia-demo/" )
20
23
ctx .run ("sudo supervisorctl restart inertia" )
21
24
You can’t perform that action at this time.
0 commit comments