create-directus-docker 1.6.9 → 1.7.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.
package/README.md
CHANGED
|
@@ -25,6 +25,14 @@ npm start
|
|
|
25
25
|
|
|
26
26
|
The wizard will walk you through configuring your environment variables, and will launch all services for you.
|
|
27
27
|
|
|
28
|
+
### Permissions
|
|
29
|
+
|
|
30
|
+
You may need to grant additional access to the 'directus' directory, so that Directus can create files there. Just run:
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
sudo chmod -R 777 directus
|
|
34
|
+
```
|
|
35
|
+
|
|
28
36
|
### Seeding MySQL data
|
|
29
37
|
|
|
30
38
|
If you want to seed your database with data on first launch, place your .sql file(s) in the "init" directory at the root of this package. MySQL will run any files in this directory the first time it launches.
|
package/package.json
CHANGED
|
@@ -37,6 +37,14 @@ As an alternative, you can install this package by following these steps. Once y
|
|
|
37
37
|
|
|
38
38
|
*Note that you'll only have to do these two steps the first time you run this.*
|
|
39
39
|
|
|
40
|
+
### Permissions
|
|
41
|
+
|
|
42
|
+
You may need to grant additional access to the 'directus' directory, so that Directus can create files there. Just run:
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
sudo chmod -R 777 directus
|
|
46
|
+
```
|
|
47
|
+
|
|
40
48
|
### Seeding MySQL data
|
|
41
49
|
|
|
42
50
|
If you want to seed your database with data on first launch, place your .sql file(s) in the "init" directory at the root of this package. MySQL will run any files in this directory the first time it launches.
|
|
@@ -186,8 +186,13 @@ try {
|
|
|
186
186
|
|
|
187
187
|
writeStream.end();
|
|
188
188
|
|
|
189
|
+
// sudo chmod -R 777 directus
|
|
190
|
+
|
|
189
191
|
console.log("\nYou can always edit the variables that we've just set in the .env file manually.\n\n");
|
|
190
192
|
console.log(chalk.redBright("If you want to seed your database on first launch, place your .sql file(s) in the \"init\" directory BEFORE running services."));
|
|
193
|
+
|
|
194
|
+
console.log(chalk.redBright("\n\nNOTE: You may want to check the permissions of your 'directus' directory, which needs be read/write/execute for all users. Run this command to do so:\n"));
|
|
195
|
+
console.log("sudo chmod -R 777 directus");
|
|
191
196
|
console.log("");
|
|
192
197
|
|
|
193
198
|
inquirer.prompt([
|