Skip to content

Commit

Permalink
Build: Separated out build process and better doco
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendade committed Dec 16, 2019
1 parent 15b8a54 commit 5dda2ff
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ For an initial Wifi hotspot, run the ``./deploy/wifi_access_point.sh`` script. T
and password "rpanion123". The Pi's IP address will be 10.0.2.100, so the Rpanion-sever website will be available
at http://10.0.2.100:3000

### Updating

When updating Rpanion-server from Github, run the following commands to build:

```
npm install
npm run build
```

If running Rpanion-server as a service, ensure to restart the service.

### Manual

Rpanion-server requires Version 12 of node.js or later, It can be installed
Expand Down
8 changes: 2 additions & 6 deletions deploy/RasPi-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ make
sudo make install
cd ../../

npm install
npm run build

## Install Rpanion as service
sudo cp rpanion.service /etc/systemd/system
sudo systemctl enable rpanion.service
## and build & run Rpanion
./deploy/build.sh

sudo reboot
13 changes: 13 additions & 0 deletions deploy/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

set -e
set -x

git pull

npm install
npm run build

## Install Rpanion as service
sudo cp rpanion.service /etc/systemd/system
sudo systemctl enable rpanion.service

0 comments on commit 5dda2ff

Please sign in to comment.