create-directus-docker 1.5.2 → 1.5.4

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.4",
5
5
  "type": "module",
6
6
  "author": {
7
7
  "name": "Dave Kobrenski",
@@ -41,7 +41,7 @@
41
41
  "upath": "^2.0.1",
42
42
  "yargs": "^17.6.2"
43
43
  },
44
- "license": "MIT",
44
+ "license": "GPL-3.0",
45
45
  "devDependencies": {
46
46
  "copy-file-util": "^0.1.6",
47
47
  "npm-run-all": "^4.1.5"
@@ -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",
package/LICENSE DELETED
@@ -1,19 +0,0 @@
1
- Copyright (c) 2023 Dave Kobrenski <dave@rlmg.com>
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy
4
- of this software and associated documentation files (the "Software"), to deal
5
- in the Software without restriction, including without limitation the rights
6
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- copies of the Software, and to permit persons to whom the Software is
8
- furnished to do so, subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
14
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
17
- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
18
- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
19
- OR OTHER DEALINGS IN THE SOFTWARE.