@faable/faable 1.5.20 → 1.5.22

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
@@ -11,7 +11,9 @@
11
11
 
12
12
  ## Faable
13
13
 
14
- Faable is the best platform to build modern architectures that scale precisely to meet demand. We handle the hard stuff so you can focus on building cloud ready apps. Make your business cloud driven and join those awesome companies.
14
+ Faable is the best platform to build modern architectures that scale precisely
15
+ to meet demand. We handle the hard stuff so you can focus on building cloud
16
+ ready apps. Make your business cloud driven and join those awesome companies.
15
17
 
16
18
  To install the latest version of Faable CLI:
17
19
 
@@ -21,4 +23,5 @@ npm i -g @faable/faable
21
23
 
22
24
  ## Documentation
23
25
 
24
- For details on how to use Faable CLI, check out our [documentation](https://docs.faable.com/).
26
+ For details on how to use Faable CLI, check out our
27
+ [documentation](https://faable.com/docs).
@@ -28,18 +28,11 @@ const deploy = {
28
28
  const { api } = ctx;
29
29
  // Resolve runtime
30
30
  const { runtime } = await runtime_detection(workdir);
31
- let app;
32
- if (args.app_id) {
33
- app = await api.getApp(args.app_id);
34
- }
35
- else {
36
- if (ctx.appId) {
37
- app = await api.getApp(ctx.appId);
38
- }
39
- }
40
- if (!app) {
41
- throw new Error('Missing <app_id>');
31
+ const app_id = args.app_id || ctx.appId;
32
+ if (!app_id) {
33
+ throw new Error('Missing <app_id>, run inside github action or pass <app_id> after deploy command');
42
34
  }
35
+ const app = await api.getApp(app_id);
43
36
  // Check if we can build docker images
44
37
  await check_environment();
45
38
  log.info(`🚀 Deploying "${app.name}" (${app.id}) runtime=${runtime.name}-${runtime.version}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faable/faable",
3
- "version": "1.5.20",
3
+ "version": "1.5.22",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Marc Pomar <marc@faable.com>",