platformatic 1.5.2 → 1.6.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/help/deploy.txt +41 -0
- package/package.json +13 -13
package/help/deploy.txt
CHANGED
|
@@ -21,3 +21,44 @@ Options:
|
|
|
21
21
|
> :information_source:
|
|
22
22
|
>
|
|
23
23
|
> When deploying an application to a ***dynamic workspace***, specify the deploy `--label` option. You can find it on your cloud dashboard or you can specify a new one.
|
|
24
|
+
>
|
|
25
|
+
> If you do not specify an environment file to use with the `-e` flag, **ensure that a default environment file named `.env` exists**.
|
|
26
|
+
|
|
27
|
+
Deploy a **static** Platformatic Cloud application.
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
platformatic deploy \
|
|
31
|
+
-t static \
|
|
32
|
+
-c platformatic.db.json \
|
|
33
|
+
-e .env.prototype \
|
|
34
|
+
--workspace-id=00000000-0000-0000-0000-000000000000 \
|
|
35
|
+
--workspace-key=11111111111111111111111111111111
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Deploy a **static** Platformatic Cloud application with a workspace keys file. The keys file can be downloaded from the Platformatic Console when generating a new API key.
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
platformatic deploy \
|
|
42
|
+
-t static \
|
|
43
|
+
-c platformatic.db.json \
|
|
44
|
+
-k foo.plt.txt
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
The `foo.plt.txt` must contain two variables for the workspace id and workspace API key.
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
# Contents of foo.plt.txt
|
|
51
|
+
PLATFORMATIC_STATIC_WORKSPACE_ID=00000000-0000-0000-0000-000000000000
|
|
52
|
+
PLATFORMATIC_STATIC_WORKSPACE_API_KEY=11111111111111111111111111111111
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Deploy a **dynamic** Platformatic Cloud application.
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
platformatic deploy \
|
|
59
|
+
-t dynamic \
|
|
60
|
+
-c platformatic.db.json \
|
|
61
|
+
-l dev \
|
|
62
|
+
--workspace-id=00000000-0000-0000-0000-000000000000 \
|
|
63
|
+
--workspace-key=11111111111111111111111111111111
|
|
64
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "platformatic",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "Platformatic CLI",
|
|
5
5
|
"main": "cli.js",
|
|
6
6
|
"type": "module",
|
|
@@ -49,18 +49,18 @@
|
|
|
49
49
|
"pino": "^8.15.3",
|
|
50
50
|
"pino-pretty": "^10.2.0",
|
|
51
51
|
"undici": "^5.25.4",
|
|
52
|
-
"@platformatic/authenticate": "1.
|
|
53
|
-
"@platformatic/client-cli": "1.
|
|
54
|
-
"@platformatic/composer": "1.
|
|
55
|
-
"@platformatic/config": "1.
|
|
56
|
-
"@platformatic/db": "1.
|
|
57
|
-
"@platformatic/deploy-client": "1.
|
|
58
|
-
"@platformatic/frontend-template": "1.
|
|
59
|
-
"@platformatic/metaconfig": "1.
|
|
60
|
-
"@platformatic/runtime": "1.
|
|
61
|
-
"@platformatic/service": "1.
|
|
62
|
-
"@platformatic/utils": "^1.
|
|
63
|
-
"create-platformatic": "1.
|
|
52
|
+
"@platformatic/authenticate": "1.6.1",
|
|
53
|
+
"@platformatic/client-cli": "1.6.1",
|
|
54
|
+
"@platformatic/composer": "1.6.1",
|
|
55
|
+
"@platformatic/config": "1.6.1",
|
|
56
|
+
"@platformatic/db": "1.6.1",
|
|
57
|
+
"@platformatic/deploy-client": "1.6.1",
|
|
58
|
+
"@platformatic/frontend-template": "1.6.1",
|
|
59
|
+
"@platformatic/metaconfig": "1.6.1",
|
|
60
|
+
"@platformatic/runtime": "1.6.1",
|
|
61
|
+
"@platformatic/service": "1.6.1",
|
|
62
|
+
"@platformatic/utils": "^1.6.1",
|
|
63
|
+
"create-platformatic": "1.6.1"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"test": "standard | snazzy && c8 node ./test/runner.js",
|