vela 0.10.2 → 0.10.4
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 +34 -0
- package/dist/bin.js +2709 -676
- package/dist/bin.js.map +4 -4
- package/package.json +2 -2
- package/templates/minimal/.prettierignore +3 -0
- package/templates/minimal/package.template.json +6 -9
- package/templates/server/apply.sh +349 -0
- package/templates/server/destroy.sh +55 -0
- package/templates/server/lib.sh +166 -0
- package/templates/server/pocketbase.sh +45 -0
- package/templates/server/provision.sh +153 -0
- package/templates/server/rollback.sh +88 -0
- package/templates/server/status.sh +44 -0
- package/templates/server/systemd/vela-pb@.service +41 -0
- package/templates/server/systemd/vela-web@.service +39 -0
- package/templates/static/.prettierignore +3 -0
- package/templates/static/package.template.json +5 -8
package/README.md
CHANGED
|
@@ -31,6 +31,40 @@ vela ui add button card dialog # components, into your pro
|
|
|
31
31
|
|
|
32
32
|
Changed your mind? `vela destroy` and `vela disable` take it back out.
|
|
33
33
|
|
|
34
|
+
## Ship it
|
|
35
|
+
|
|
36
|
+
Deploys go to a server you own, over SSH. Prepare the box once, then deploy as often as you like.
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
vela provision root@your-server # Caddy, Node, PocketBase, systemd, TLS
|
|
40
|
+
vela deploy --server root@your-server --domain example.com
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
That first deploy binds `production` to the server, so nothing after it names a
|
|
44
|
+
machine again. Every command takes the same selector — `-t local`, `-t production`
|
|
45
|
+
(or `prod`), or any name you choose such as `-t staging`:
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
vela targets # what exists, and where
|
|
49
|
+
vela env import .env.production -t production
|
|
50
|
+
vela admin create -t production # a login for the admin panel
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
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.
|
|
54
|
+
|
|
55
|
+
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.
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
vela status # what is running, on which release
|
|
59
|
+
vela logs -f # journald, tailed
|
|
60
|
+
vela rollback # previous release, with its down migrations
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
These default to `production`; `vela env` and `vela admin` default to `local`,
|
|
64
|
+
because that is the copy you are usually standing in.
|
|
65
|
+
|
|
66
|
+
Same thing from CI with [`velastack/action`](https://github.com/velastack/action).
|
|
67
|
+
|
|
34
68
|
## Already have a project?
|
|
35
69
|
|
|
36
70
|
```sh
|