Skip to content

Commit

Permalink
Switch to adapter static instead of adapter node
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieGoodson committed Jul 7, 2023
1 parent eaf5e12 commit 00a0fac
Show file tree
Hide file tree
Showing 6 changed files with 337 additions and 287 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,30 @@ or anywhere.
### Production

- Run `npm run build`
- Run `node build/index.js`
- Run `npm run serve`

The server should now be running! 🎉

Direct your device's browser to your Raspberry Pi's IP and port `3000`
Direct your device's browser to your Raspberry Pi's IP and port `8080`
(or wherever you're hosting the app) to view Gatefold 🙂

For example `http://192.168.1.143:3000/`
For example `http://192.168.1.143:8080/`

### Run as a service (recommended)

To keep the app running forever, it's best to run Gatefold as a service on the Raspberry Pi. To do this:

- Run `npm run build`
- Edit the `ExecStart` path to point to the right place (ie the full path to this directory + `/build/index.js`)
- Edit the `ExecStart` path to point to the right place (ie the full path to this directory)
- Run `cp gatefold.service /lib/systemd/system/`
- Run `sudo systemctl start gatefold`

This will start the Gatefold service and run in the background. It'll also start automatically on system startup.

Direct your device's browser to your Raspberry Pi's IP and port `3000`
Direct your device's browser to your Raspberry Pi's IP and port `8080`
(or wherever you're hosting the app) to view Gatefold 🙂

For example `http://192.168.1.143:3000/`
For example `http://192.168.1.143:8080/`

## Part B - The Raspotify Script

Expand Down
2 changes: 1 addition & 1 deletion webapp/gatefold.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ After=network.target
[Service]
Type=simple
User=pi
ExecStart=node /home/pi/projects/gatefold/webapp/build/index.js
ExecStart=/bin/bash -c "cd /home/pi/projects/gatefold/webapp && npm run serve"
Restart=on-failure

[Install]
Expand Down
Loading

0 comments on commit 00a0fac

Please sign in to comment.