scottlamb / moonfire-nvr

Moonfire NVR, a security camera network video recorder
Other
1.2k stars 138 forks source link

UI Build directory specification or "cd" required #163

Closed jlpoolen closed 2 years ago

jlpoolen commented 2 years ago

The current instructions for building the ui have:

You can build the UI via npm and find it in the ui/build directory:

$ cd ui
$ npm install
$ npm run build
$ sudo mkdir /usr/local/lib/moonfire-nvr
$ sudo rsync --recursive --delete --chmod=D755,F644 ui/build/ /usr/local/lib/moonfire-nvr/ui

In fact, you either need to cd .. out of the ui directory or the rsynce command needs to omit the "ui/" prefix to the first parameter.

Otherwise you get an error trying to rsync the directory you're currently in:

jlpoole@ares /usr/local/src/moonfire-nvr.git/trunk/ui $ sudo rsync --recursive --delete --chmod=D755,F644 ui/build/ /usr/local/lib/moonfire-nvr/ui
rsync: [sender] change_dir "/usr/local/src/moonfire-nvr.git/trunk/ui/ui/build" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=3.2.3]
jlpoole@ares /usr/local/src/moonfire-nvr.git/trunk/ui $ 
jlpoolen commented 2 years ago

Effectuated minimal change per pull request. Closing.