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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-directus-docker",
3
3
  "description": "An installer for Dockerized Directus + MySQL + Adminer + GraphiQL with a helper Node app",
4
- "version": "1.5.0",
4
+ "version": "1.5.2",
5
5
  "type": "module",
6
6
  "author": {
7
7
  "name": "Dave Kobrenski",
@@ -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
- console.log(`${chalk.redBright("Directus taking too long to respond. You may need to manually start it.")}`);
145
- console.log(`Just run ${chalk.greenBright("npm run launch")} and you should be good to go.`);
146
- console.log(`You can also check if it is running with ${chalk.greenBright("docker-compose ps")}`);
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
- console.log(`${chalk.yellowBright("Directus appears to be running, but took a while to respond.")}`);
149
- console.log(`Just run ${chalk.greenBright("npm run launch")} to verify, and you should be good to go.`);
150
- console.log(`You can also check if it is running with ${chalk.greenBright("docker-compose ps")}`);
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
  });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "directus-mysql-docker",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "A helper app to configure Directus on Docker with MySQL, Adminer, and GraphQL",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",