create-directus-docker 1.5.0 → 1.5.2
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/package.json
CHANGED
|
@@ -124,30 +124,27 @@ export default function launchServices() {
|
|
|
124
124
|
jq.run(q, data.toString(), { input: 'string' })
|
|
125
125
|
.then((data) => {
|
|
126
126
|
const json = JSON.parse(data);
|
|
127
|
-
console.log(data);
|
|
127
|
+
//console.log(data);
|
|
128
128
|
|
|
129
129
|
if(json.State == 'running') {
|
|
130
|
-
logUpdate(`${chalk.yellowBright("Directus appears to be running, but took a while to respond.")}
|
|
131
|
-
console.log(`Just run ${chalk.greenBright("npm run launch")} to verify, and you should be good to go.`);
|
|
132
|
-
|
|
133
|
-
logUpdate.done();
|
|
130
|
+
logUpdate(`${chalk.yellowBright("Directus appears to be running, but took a while to respond.")}. \nJust run ${chalk.greenBright("npm run launch")} to verify, and you should be good to go.`);
|
|
134
131
|
} else {
|
|
135
|
-
logUpdate(`${chalk.redBright("Directus taking too long to respond. You may need to manually start it.")}
|
|
136
|
-
logUpdate.done();
|
|
137
|
-
console.log(`Just run ${chalk.greenBright("npm run launch")} and you should be good to go.`);
|
|
132
|
+
logUpdate(`${chalk.redBright("Directus taking too long to respond. You may need to manually start it.")}. \nJust run ${chalk.greenBright("npm run launch")} and you should be good to go.`);
|
|
138
133
|
}
|
|
139
134
|
});
|
|
140
135
|
});
|
|
141
136
|
|
|
142
137
|
check.on('close', (code) => {
|
|
143
138
|
if (code !== 0) {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
139
|
+
var line1 = `${chalk.redBright("Directus taking too long to respond. You may need to manually start it.")}`;
|
|
140
|
+
var line2 = `Just run ${chalk.greenBright("npm run launch")} and you should be good to go.`;
|
|
141
|
+
var line3 = `You can also check if it is running with ${chalk.greenBright("docker-compose ps")}`;
|
|
142
|
+
logUpdate(`${line1} \n${line2} \n${line3}`);
|
|
147
143
|
} else {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
144
|
+
var line1 = `${chalk.yellowBright("Directus appears to be running, but took a while to respond.")}`;
|
|
145
|
+
var line2 = `Just run ${chalk.greenBright("npm run launch")} to verify, and you should be good to go.`;
|
|
146
|
+
var line3 = `You can also check if it is running with ${chalk.greenBright("docker-compose ps")}`;
|
|
147
|
+
logUpdate(`${line1} \n${line2} \n${line3}`);
|
|
151
148
|
}
|
|
152
149
|
});
|
|
153
150
|
});
|