Mercurial > code > home > repos > homeauto
comparison service/wifi/tasks.py @ 1464:32d134dbfb1e
start ts config files, but this doesn't share the streamed-graph code properly yet
Ignore-this: ef4e6fdf3369939b062caa5fdc2788e9
darcs-hash:e30e71ea5e8e9958c254c9210cdccde7a74b96bb
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Tue, 17 Dec 2019 23:16:53 -0800 |
parents | b287950fbcf4 |
children | 4bbc68603168 |
comparison
equal
deleted
inserted
replaced
1463:2452dd87aa9c | 1464:32d134dbfb1e |
---|---|
16 def shell(ctx): | 16 def shell(ctx): |
17 ctx.run(f'docker run --name {JOB}_shell --rm -it --cap-add SYS_PTRACE --net=host {TAG} /bin/bash', pty=True) | 17 ctx.run(f'docker run --name {JOB}_shell --rm -it --cap-add SYS_PTRACE --net=host {TAG} /bin/bash', pty=True) |
18 | 18 |
19 @task(pre=[build_image]) | 19 @task(pre=[build_image]) |
20 def local_run(ctx): | 20 def local_run(ctx): |
21 ctx.run(f'docker run --name {JOB}_local --rm -it --net=host {TAG} python3 wifi.py -v', pty=True) | 21 ctx.run(f'docker run --name {JOB}_local --rm -it --net=host -v `pwd`:/opt {TAG} python3 wifi.py -v', pty=True) |
22 | 22 |
23 @task(pre=[push_image]) | 23 @task(pre=[push_image]) |
24 def redeploy(ctx): | 24 def redeploy(ctx): |
25 ctx.run(f'supervisorctl -s http://bang:9001/ restart {JOB}_{PORT}') | 25 ctx.run(f'supervisorctl -s http://bang:9001/ restart {JOB}_{PORT}') |
26 | |
27 | |
28 # one time: | |
29 # yarn policies set-version v2 | |
30 # and for vscode: | |
31 # yarn pnpify --sdk | |
32 # then pick the pnp one on statusbar. | |
33 | |
34 #yarn run webpack-cli --config webpack.config.js --mode production | |
35 | |
36 | |
37 @task | |
38 def build(ctx): | |
39 ctx.run(f'yarn webpack-build', pty=True) # --debug --display-error-details | |
40 | |
41 @task | |
42 def serve_demo(ctx): | |
43 ctx.run('node_modules/.bin/webpack-dev-server --config webpack-dev.config.ts --port 8082 --verbose --color') |