diff options
| author | diogo464 <[email protected]> | 2025-08-24 22:15:26 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-08-24 22:15:26 +0100 |
| commit | aaafa6638d2a42fae095f1fe250400108b4a6f60 (patch) | |
| tree | 22a8957e5481d38e5b56b76184509a8b849c95e5 /Justfile | |
| parent | 876ec492906f77ee4c18ee236ba2f30ddddb5d10 (diff) | |
reduced downtime when deploying frontend
Diffstat (limited to 'Justfile')
| -rw-r--r-- | Justfile | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -42,8 +42,8 @@ deploy-frontend: push-container | |||
| 42 | #!/usr/bin/env bash | 42 | #!/usr/bin/env bash |
| 43 | # sudo mount.cifs -o uid=1000,gid=1000,username=u484453 //u484453.your-storagebox.de/backup fct-drive | 43 | # sudo mount.cifs -o uid=1000,gid=1000,username=u484453 //u484453.your-storagebox.de/backup fct-drive |
| 44 | ssh {{remote}} <<EOF | 44 | ssh {{remote}} <<EOF |
| 45 | podman stop fctdrive_frontend | 45 | podman pull {{image}} |
| 46 | podman rm fctdrive_frontend | 46 | podman rm -f fctdrive_frontend |
| 47 | podman run -td --network host \ | 47 | podman run -td --network host \ |
| 48 | --name fctdrive_frontend \ | 48 | --name fctdrive_frontend \ |
| 49 | -e PORT=3000 \ | 49 | -e PORT=3000 \ |
| @@ -51,7 +51,7 @@ deploy-frontend: push-container | |||
| 51 | -e TINYAUTH_ENDPOINT="http://127.0.0.1:3001" \ | 51 | -e TINYAUTH_ENDPOINT="http://127.0.0.1:3001" \ |
| 52 | -e TINYAUTH_PUBLIC_ENDPOINT="https://auth.fctdrive.xyz" \ | 52 | -e TINYAUTH_PUBLIC_ENDPOINT="https://auth.fctdrive.xyz" \ |
| 53 | -v /home/diogo464/fct-drive:/data \ | 53 | -v /home/diogo464/fct-drive:/data \ |
| 54 | --pull=always \ | 54 | --pull=never \ |
| 55 | {{image}} | 55 | {{image}} |
| 56 | EOF | 56 | EOF |
| 57 | 57 | ||
