mirror of
https://github.com/nikdoof/pocket-id.git
synced 2025-12-13 23:02:17 +00:00
888 B
888 B
id
| id |
|---|
| upgrading |
Upgrading
Updating to a New Version
Docker
docker compose pull
docker compose up -d
Stand-alone
-
Stop the running services:
pm2 delete pocket-id-backend pocket-id-frontend pocket-id-caddy -
Run the following commands:
cd pocket-id # Checkout the latest version git fetch --tags && git checkout $(git describe --tags `git rev-list --tags --max-count=1`) # Start the backend cd backend/cmd go build -o ../pocket-id-backend cd .. pm2 start pocket-id-backend --name pocket-id-backend # Start the frontend cd ../frontend npm install npm run build pm2 start build/index.js --name pocket-id-frontend # Optional: Start Caddy (You can use any other reverse proxy) cd .. pm2 start caddy --name pocket-id-caddy -- run --config reverse-proxy/Caddyfile