wp-lemon-create 1.2.2 → 1.2.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/lib/index.js +11 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -285,15 +285,23 @@ program
|
|
|
285
285
|
shell.echo('✔️ Created primary menu.');
|
|
286
286
|
|
|
287
287
|
} else {
|
|
288
|
-
// Flush rewrite rules
|
|
289
|
-
shell.exec(`wp rewrite flush`);
|
|
290
288
|
shell.echo('Creating Database.\n');
|
|
291
289
|
|
|
292
290
|
if (shell.exec(`wp db create`, { silent: true }).code !== 0) {
|
|
293
291
|
shell.echo('Database creation failed.');
|
|
294
292
|
} else {
|
|
295
|
-
shell.echo('✔️ Database created
|
|
293
|
+
shell.echo('✔️ Database created.');
|
|
296
294
|
}
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Wait until user adds site and presses a key.
|
|
299
|
+
*/
|
|
300
|
+
shell.echo('You can import your database by placing the .sql dump in the project root and run wp db import databasename.sql.');
|
|
301
|
+
prompt('Please import your database and uploads. After that press enter to continue.');
|
|
302
|
+
|
|
303
|
+
// Flush rewrite rules
|
|
304
|
+
shell.exec(`wp rewrite flush`);
|
|
297
305
|
}
|
|
298
306
|
|
|
299
307
|
shell.echo(`\n`);
|