Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,11 @@ vic-gateway: go_deps
--user $(UID):$(GID) \
armbuilder \
upx build/vic-gateway

upload-on-vector:
@ssh root@$(ROBOT_IP) "mount -o remount,rw /"
@ssh root@$(ROBOT_IP) "systemctl stop vic-cloud"
@ssh root@$(ROBOT_IP) "systemctl stop vic-gateway"
@scp ./build/vic-cloud root@$(ROBOT_IP):/anki/bin/vic-cloud
@scp ./build/vic-gateway root@$(ROBOT_IP):/anki/bin/vic-gateway
@ssh root@$(ROBOT_IP) "systemctl daemon-reload"
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,21 @@ To build vic-gateway, run...
```
# make vic-gateway
```
## Development
If you have vector with ssh enabled you can you use the following to easily upload the
generated binaries.

```
# make upload-on-vector
```

The make command assumes that you have the robot ip saved under the ROBOT_IP, which is
a comman practise while developing on vector robots. If you dont have that setup you can
use the following.

```
# make upload-on-vector ROBOT_IP=192.168.65.97
```

## Example Customization

Expand Down