@shiplane/fly 0.5.0 โ 0.5.1
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 +19 -10
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# ๐ @shiplane/fly
|
|
2
2
|
|
|
3
|
-
Ships a backend to Fly.io: fills
|
|
4
|
-
|
|
3
|
+
Ships a backend to Fly.io: fills
|
|
4
|
+
[shiplane](https://github.com/arnaud-zg/packages/blob/main/packages/shiplane/README.md)'s **server
|
|
5
|
+
hosting** port with `flyctl deploy`. Any app with a Dockerfile works.
|
|
5
6
|
|
|
6
7
|
```mermaid
|
|
7
8
|
flowchart LR
|
|
@@ -11,16 +12,13 @@ flowchart LR
|
|
|
11
12
|
CMD --> HOST["Fly.io app per environment"]
|
|
12
13
|
```
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
[How shiplane plugins work](https://github.com/arnaud-zg/packages/blob/main/docs/shiplane/plugins.md).
|
|
16
|
-
|
|
17
|
-
## Install
|
|
15
|
+
## โก Install
|
|
18
16
|
|
|
19
17
|
```sh
|
|
20
18
|
pnpm add -D shiplane @shiplane/fly
|
|
21
19
|
```
|
|
22
20
|
|
|
23
|
-
## Configure
|
|
21
|
+
## โ๏ธ Configure
|
|
24
22
|
|
|
25
23
|
Give the adapter to `backendService`. From
|
|
26
24
|
[`examples/shiplane.config.ts`](./examples/shiplane.config.ts):
|
|
@@ -43,7 +41,7 @@ export default defineRelease({
|
|
|
43
41
|
});
|
|
44
42
|
```
|
|
45
43
|
|
|
46
|
-
## Unit file keys
|
|
44
|
+
## ๐ Unit file keys
|
|
47
45
|
|
|
48
46
|
In the app's `shiplane.unit.yml`, next to `module: backend-service`. A key marked per environment
|
|
49
47
|
also takes a `preview:` / `production:` map.
|
|
@@ -58,7 +56,7 @@ also takes a `preview:` / `production:` map.
|
|
|
58
56
|
|
|
59
57
|
Source: `FlyOptions` in `src/fly-server-hosting.adapter.ts`. `shiplane docs fly` prints the same.
|
|
60
58
|
|
|
61
|
-
## Example
|
|
59
|
+
## ๐งช Example
|
|
62
60
|
|
|
63
61
|
From [`examples/apps/api/shiplane.unit.yml`](./examples/apps/api/shiplane.unit.yml):
|
|
64
62
|
|
|
@@ -93,7 +91,7 @@ The deploy waits until Fly rolled it out, then records it. `init` offers this ad
|
|
|
93
91
|
with a `fly.toml` (or `fly-preview.toml` and `fly-production.toml`), and as a possibility for a
|
|
94
92
|
folder with only a Dockerfile.
|
|
95
93
|
|
|
96
|
-
## Tools and sign-ins
|
|
94
|
+
## ๐ Tools and sign-ins
|
|
97
95
|
|
|
98
96
|
| Tool | Checked with | Fixed with | In CI |
|
|
99
97
|
| -------- | -------------------- | ------------------- | --------------- |
|
|
@@ -102,6 +100,17 @@ folder with only a Dockerfile.
|
|
|
102
100
|
Source: `requirements` in `src/fly-server-hosting.adapter.ts`. `pnpm shiplane doctor` runs each
|
|
103
101
|
check and offers the fix.
|
|
104
102
|
|
|
103
|
+
## ๐ Docs
|
|
104
|
+
|
|
105
|
+
- ๐ **[Plugins](https://github.com/arnaud-zg/packages/blob/main/docs/shiplane/plugins.md)**: how
|
|
106
|
+
shiplane plugins work, and how to write one
|
|
107
|
+
- ๐ข **[shiplane](https://github.com/arnaud-zg/packages/blob/main/packages/shiplane/README.md)**:
|
|
108
|
+
the release tool this plugin fills a port of
|
|
109
|
+
- ๐ ๏ธ **[How-to](https://github.com/arnaud-zg/packages/blob/main/docs/shiplane/how-to.md)**: add an
|
|
110
|
+
app, promote, ship from CI
|
|
111
|
+
- ๐ **[Reference](https://github.com/arnaud-zg/packages/blob/main/docs/shiplane/reference.md)**:
|
|
112
|
+
commands, flags, the config and unit files
|
|
113
|
+
|
|
105
114
|
## ๐ Downloads
|
|
106
115
|
|
|
107
116
|
<a href="https://npm-stat.com/charts.html?package=@shiplane/fly">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shiplane/fly",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Fly.io plugin for shiplane: deploy any Dockerfile app per environment with flyctl.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"shiplane",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"prettier": "^3.10.1",
|
|
39
39
|
"typescript": "6.0.3",
|
|
40
40
|
"vitest": "^5.1.0",
|
|
41
|
-
"shiplane": "0.5.
|
|
41
|
+
"shiplane": "0.5.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"shiplane": "0.5.
|
|
44
|
+
"shiplane": "0.5.1"
|
|
45
45
|
},
|
|
46
46
|
"shiplane": {
|
|
47
47
|
"adapters": [
|