distinct setup/deploy scripts

This commit is contained in:
2026-01-13 13:14:02 +00:00
parent 86c5a4ef8d
commit 156af3d64c
3 changed files with 112 additions and 37 deletions

View File

@@ -12,15 +12,18 @@ Start a new PocketBase project (optionally provide a service name via `pb init <
Run the local dev server.
### `deploy`
### `setup`
Deploys pocketbase to a remote server. This will:
Provision a remote PocketBase server. This will:
1. Setup up a firewall.
2. Install and setup Caddy.
3. Download pocketbase and setup a systemd service.
4. Copy pb_public, pb_migrations and pb_hooks.
5. Start the service.
3. Download pocketbase and configure the `.env`.
4. Configure the systemd service for the remote instance.
### `deploy`
Syncs `pb_public`, `pb_migrations`, and `pb_hooks`, then restarts the remote PocketBase service. The command will automatically run `setup` if the PocketBase binary isnt present on the remote.
### logs