@faable/faable 1.10.0 โ 1.11.0
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.
|
@@ -46,8 +46,10 @@ const has_node_modules = (workdir, exists) => {
|
|
|
46
46
|
*/
|
|
47
47
|
const ensure_dependencies = async (workdir, deps = {}) => {
|
|
48
48
|
const { run = defaultRun, hasTool = defaultHasTool, exists = existsSync } = deps;
|
|
49
|
-
if (has_node_modules(workdir, exists))
|
|
49
|
+
if (has_node_modules(workdir, exists)) {
|
|
50
|
+
log.info(`๐ฆ Dependencies already installed โ skipping install (fresh dependencies)`);
|
|
50
51
|
return;
|
|
52
|
+
}
|
|
51
53
|
const has = (file) => exists(join(workdir, file));
|
|
52
54
|
let install = "npm install --no-audit --no-fund";
|
|
53
55
|
if (has("package-lock.json") || has("npm-shrinkwrap.json")) {
|
|
@@ -74,7 +74,7 @@ const deploy = {
|
|
|
74
74
|
...git
|
|
75
75
|
});
|
|
76
76
|
const dashboard_url = `https://dashboard.faable.com/deploy/${app.team}/app/${app.id}`;
|
|
77
|
-
log.info(
|
|
77
|
+
log.info(`Preparing to deploy in faable cloud ยท ${deployment.id}`);
|
|
78
78
|
log.info(`๐ View it in the dashboard -> ${dashboard_url}`);
|
|
79
79
|
// Wait (up to 5 minutes) for the deployment to be promoted (live)
|
|
80
80
|
const wait = (ms) => new Promise(resolve => setTimeout(resolve, ms));
|
|
@@ -98,7 +98,7 @@ const deploy = {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
if (promoted) {
|
|
101
|
-
log.info(
|
|
101
|
+
log.info(`๐ Deployment promoted and live, visit: https://${app.url}`);
|
|
102
102
|
}
|
|
103
103
|
else {
|
|
104
104
|
log.warn(`โ Timed out after 5min waiting for promotion. The deployment is still rolling out, check the dashboard -> ${dashboard_url}`);
|