mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-02-26 04:49:17 -05:00
correctly describe installation in build guide
There were several incorrect/out-of-date paths here, and it didn't have example commands to install the server or UI. Fixes #150
This commit is contained in:
parent
4892ed77d1
commit
7518b4c865
@ -228,14 +228,16 @@ Once prerequisites are installed, you can build the server and find it in
|
||||
$ cd server
|
||||
$ cargo test
|
||||
$ cargo build --release
|
||||
$ sudo install -m 755 target/release/moonfire-nvr /usr/local/bin
|
||||
```
|
||||
|
||||
You can build the UI via `npm` and find it in the `ui/dist` directory:
|
||||
You can build the UI via `npm` and find it in the `ui/build` directory:
|
||||
|
||||
```
|
||||
$ cd ui
|
||||
$ npm install
|
||||
$ npm run build
|
||||
$ sudo rsync -Pav --delete ui/build/ /usr/local/lib/moonfire-nvr/ui
|
||||
```
|
||||
|
||||
### Running interactively straight from the working copy
|
||||
@ -244,8 +246,8 @@ The author finds it convenient for local development to set up symlinks so that
|
||||
the binaries in the working copy will run via just `nvr`:
|
||||
|
||||
```
|
||||
$ sudo mkdir /usr/local/moonfire-nvr
|
||||
$ sudo ln -s `pwd`/ui-dist /usr/local/moonfire-nvr/ui
|
||||
$ sudo mkdir /usr/local/lib/moonfire-nvr
|
||||
$ sudo ln -s `pwd`/ui/build /usr/local/lib/moonfire-nvr/ui
|
||||
$ sudo mkdir /var/lib/moonfire-nvr
|
||||
$ sudo chown $USER:$USER /var/lib/moonfire-nvr
|
||||
$ ln -s `pwd`/target/release/moonfire-nvr $HOME/bin/moonfire-nvr
|
||||
|
Loading…
x
Reference in New Issue
Block a user