create-directus-docker 1.5.2 → 1.5.3

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.2",
4
+ "version": "1.5.3",
5
5
  "type": "module",
6
6
  "author": {
7
7
  "name": "Dave Kobrenski",
@@ -161,8 +161,8 @@ try {
161
161
  writeStream.write(`DIRECTUS_DOMAIN="${answers.DIRECTUS_DOMAIN}"\n`);
162
162
  writeStream.write(`DIRECTUS_PORT="${answers.DIRECTUS_PORT}"\n`);
163
163
 
164
- if(answers.DIRECTUS_DOMAIN === "localhost") {
165
- if(answers.DIRECTUS_PORT === 80) {
164
+ if(answers.DIRECTUS_DOMAIN == "localhost") {
165
+ if(answers.DIRECTUS_PORT == 80) {
166
166
  writeStream.write(`PUBLIC_URL="http://localhost"\n`);
167
167
  writeStream.write(`API_ENDPOINT="http://localhost/graphql"`);
168
168
  } else {
@@ -170,7 +170,7 @@ try {
170
170
  writeStream.write(`API_ENDPOINT="http://localhost:${answers.DIRECTUS_PORT}/graphql"`);
171
171
  }
172
172
  } else {
173
- if(answers.DIRECTUS_PORT === 80) {
173
+ if(answers.DIRECTUS_PORT == 80) {
174
174
  writeStream.write(`PUBLIC_URL="${answers.DIRECTUS_DOMAIN}"\n`);
175
175
  writeStream.write(`API_ENDPOINT="${answers.DIRECTUS_DOMAIN}/graphql"`);
176
176
  } else {
@@ -88,7 +88,8 @@ export default function launchServices() {
88
88
  tcpTimeout: 40000
89
89
  }
90
90
 
91
- const loader2 = ora('Waiting for Directus to be ready').start();
91
+ logUpdate(`Pinging directus at: ${process.env.PUBLIC_URL}`);
92
+ const loader2 = ora('Waiting for Directus to be ready').start();
92
93
 
93
94
  waitOn(pingOpts).then(() => {
94
95
  loader2.stop();
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "directus-mysql-docker",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
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",