Add autostart instructions

This commit is contained in:
zyphlar 2018-08-31 15:00:01 -07:00 committed by GitHub
parent 6b6d8fcc7c
commit de78173854
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,15 +53,15 @@ export CXX=g++-4.8
npm install node-hid --build-from-source npm install node-hid --build-from-source
``` ```
You should now be able to view the app at You should now be able to view the app at http://localhost:3000
Place this at the bottom of your `~/.bashrc` file: # Autostart
```bash On a RasPi, copy the contents of the autostart file into: `~/.config/lxsession/LXDE-pi/autostart`
alias node='$NVM_BIN/node'
forever start ~/doorlock/src/server.js Optionally, to help users with debugging, run `ln -s /home/pi/doorlock/start.sh ~/Desktop/start-doorlock.sh` to give them a link on the desktop.
chromium-browser --kiosk localhost:3000
``` Or generally, find some way to run `./start.sh` in this folder
## Further reading ## Further reading