|
|
|
@@ -29,14 +29,15 @@ From this repo on your local machine: |
|
|
|
|
|
|
|
```bash |
|
|
|
chmod +x scripts/deploy-raspi.sh |
|
|
|
scripts/deploy-raspi.sh pi@raspberrypi.local git@github.com:YOUR_USER/warehouse.git DietPi.ntp.kentcommunications.com |
|
|
|
scripts/deploy-raspi.sh pi raspberrypi.local git@github.com:YOUR_USER/warehouse.git DietPi.ntp.kentcommunications.com |
|
|
|
``` |
|
|
|
|
|
|
|
Arguments: |
|
|
|
|
|
|
|
- argument 1: SSH target, for example `pi@192.168.1.50` |
|
|
|
- argument 2: Git clone URL the Pi can access |
|
|
|
- argument 3: nginx `server_name` value, optional, defaults to `DietPi.ntp.kentcommunications.com` |
|
|
|
- argument 1: SSH user, for example `pi` |
|
|
|
- argument 2: SSH host, for example `192.168.1.50` |
|
|
|
- argument 3: Git clone URL the Pi can access |
|
|
|
- argument 4: nginx `server_name` value, optional, defaults to `DietPi.ntp.kentcommunications.com` |
|
|
|
|
|
|
|
## Useful environment overrides |
|
|
|
|
|
|
|
@@ -44,7 +45,7 @@ Arguments: |
|
|
|
DEPLOY_REF=main \ |
|
|
|
DEPLOY_PATH=/var/www/warehouse \ |
|
|
|
PHP_VERSION=8.2 \ |
|
|
|
scripts/deploy-raspi.sh pi@raspberrypi.local git@github.com:YOUR_USER/warehouse.git DietPi.ntp.kentcommunications.com |
|
|
|
scripts/deploy-raspi.sh pi raspberrypi.local git@github.com:YOUR_USER/warehouse.git DietPi.ntp.kentcommunications.com |
|
|
|
``` |
|
|
|
|
|
|
|
## After deploy |
|
|
|
@@ -59,4 +60,4 @@ scripts/deploy-raspi.sh pi@raspberrypi.local git@github.com:YOUR_USER/warehouse. |
|
|
|
- the app serves from `public/`, so the nginx root must stay pointed there |
|
|
|
- low-stock emails are always queued in this app, so the queue worker service matters in production |
|
|
|
- this script sets up **HTTP only**; add TLS separately with `certbot` or another reverse-proxy setup if you want HTTPS |
|
|
|
- if you prefer MySQL instead of SQLite, update `.env` and the script before rerunning it |
|
|
|
- if you prefer MySQL instead of SQLite, update `.env` and the script before rerunning it |