vela 0.11.3 → 0.11.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -45,6 +45,15 @@ vela provision root@your-server # Caddy, Node, PocketBase
45
45
  vela deploy --server root@your-server --domain example.com
46
46
  ```
47
47
 
48
+ Any SvelteKit project deploys this way, PocketBase or not — `npx sv create my-app`
49
+ straight into `vela deploy` works. The deploy looks at the project rather than at a
50
+ config: a server needs `@sveltejs/adapter-node`, so a project still on `adapter-auto`
51
+ (what `sv create` gives you) is switched to it on the first deploy, the package
52
+ installed, and you are asked to commit the change. A project on `adapter-static` or a
53
+ hosting platform's adapter is left alone and told why. Nothing on the server assumes a
54
+ database: run `vela bless` whenever you want one and deploy again, and the same instance
55
+ gains its PocketBase.
56
+
48
57
  That first deploy binds `production` to the server, so nothing after it names a
49
58
  machine again. Every command takes the same selector — `-t local`, `-t production`
50
59
  (or `prod`), or any name you choose such as `-t staging`:
@@ -55,7 +64,9 @@ vela env import .env.production -t production
55
64
  vela admin create -t production # a login for the admin panel
56
65
  ```
57
66
 
58
- Each deploy uploads an immutable release, runs migrations, restarts the app and health-checks it. A release that does not come up healthy is rolled back before the command exits.
67
+ Each deploy uploads an immutable release, runs migrations, restarts the app and health-checks it. A release that does not come up healthy is rolled back before the command exits, migrations included.
68
+
69
+ One deploy runs per target at a time. A second one started from another machine — CI and a laptop, say — waits for the first to finish (up to `--lock-wait` seconds, 300 by default; `0` gives up at once), and a release that is older than the one already live is dropped rather than put back in front of it. Release ids are stamped from the server's clock so every machine agrees on which is newer.
59
70
 
60
71
  If any of your pages prerender from data, add `--remote-db` so the build renders against the database it is being deployed to, over the same SSH connection. Without it, a build on a fresh machine renders those pages against an empty database and bakes the defaults into your static HTML.
61
72
 
@@ -65,6 +76,8 @@ vela logs -f # journald, tailed
65
76
  vela rollback # previous release, with its down migrations
66
77
  ```
67
78
 
79
+ `vela destroy deployment -t staging` removes a copy from its server. Its database and uploads stay behind unless you pass `--purge`, which snapshots them into `/var/lib/vela/trash` on the server (kept two weeks) before deleting. Removing production, or purging anything but a preview, asks you to type the app's name; from a script, pass `--confirm <app-name>` — `--yes` alone is not accepted for either.
80
+
68
81
  These default to `production`; `vela env` and `vela admin` default to `local`,
69
82
  because that is the copy you are usually standing in.
70
83
 
@@ -76,7 +89,9 @@ Same thing from CI with [`velastack/action`](https://github.com/velastack/action
76
89
  vela bless
77
90
  ```
78
91
 
79
- Adds the backend and the rest of the setup to a vanilla SvelteKit project, in place.
92
+ Adds the backend and the rest of the setup to a vanilla SvelteKit project, in place. A
93
+ project that is already deployed keeps deploying to the same instance, now with a
94
+ database.
80
95
 
81
96
  ## It stays your code
82
97