Unify systemctl services start and remove make build instructions
Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -92,13 +92,11 @@ Manage them with `systemctl`:
|
|||||||
|
|
||||||
**Start the app:**
|
**Start the app:**
|
||||||
```bash
|
```bash
|
||||||
./contrib/lima/sandbox.sh exec -- make build
|
|
||||||
./contrib/lima/sandbox.sh exec -- sudo systemctl start probod probo-console probo-trust
|
./contrib/lima/sandbox.sh exec -- sudo systemctl start probod probo-console probo-trust
|
||||||
```
|
```
|
||||||
|
|
||||||
**Run tests:**
|
**Run tests:**
|
||||||
```bash
|
```bash
|
||||||
./contrib/lima/sandbox.sh exec -- make build
|
|
||||||
./contrib/lima/sandbox.sh exec -- make test
|
./contrib/lima/sandbox.sh exec -- make test
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -106,12 +104,3 @@ Manage them with `systemctl`:
|
|||||||
```bash
|
```bash
|
||||||
./contrib/lima/sandbox.sh exec -- make test-e2e
|
./contrib/lima/sandbox.sh exec -- make test-e2e
|
||||||
```
|
```
|
||||||
|
|
||||||
**Restart after code changes:**
|
|
||||||
Code changes are reflected immediately (virtiofs mount). Just rebuild and
|
|
||||||
restart probod — no need to restart the VM.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
./contrib/lima/sandbox.sh exec -- make build
|
|
||||||
./contrib/lima/sandbox.sh exec -- sudo systemctl restart probod
|
|
||||||
```
|
|
||||||
|
|||||||
@@ -249,4 +249,4 @@ EOF
|
|||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable --now probo-node-modules.service
|
systemctl enable --now probo-node-modules.service
|
||||||
systemctl enable --now probo-stack.service
|
systemctl enable --now probo-stack.service
|
||||||
systemctl enable probod.service probo-console.service probo-trust.service
|
systemctl enable --now probod.service probo-console.service probo-trust.service
|
||||||
|
|||||||
@@ -81,7 +81,6 @@ cmd_create() {
|
|||||||
cmd_start() {
|
cmd_start() {
|
||||||
echo "Starting sandbox: ${VM_NAME}"
|
echo "Starting sandbox: ${VM_NAME}"
|
||||||
limactl start "${VM_NAME}"
|
limactl start "${VM_NAME}"
|
||||||
cmd_exec -- sudo systemctl start probod probo-console probo-trust
|
|
||||||
echo ""
|
echo ""
|
||||||
cmd_status
|
cmd_status
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user