create-laju-app 1.0.5 → 1.0.7
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/bin/cli.js +19 -1
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -64,14 +64,32 @@ program
|
|
|
64
64
|
console.log('📦 Installing dependencies...');
|
|
65
65
|
execSync('npm install', { stdio: 'inherit' });
|
|
66
66
|
console.log('📝 Copying environment file...');
|
|
67
|
-
|
|
67
|
+
|
|
68
|
+
execSync(process.platform === 'win32' ? 'copy .env.example .env' : 'cp .env.example .env', { stdio: 'inherit' });
|
|
68
69
|
console.log('🔄 Running migrations...');
|
|
69
70
|
execSync('npx knex migrate:latest', { stdio: 'inherit' });
|
|
70
71
|
console.log('🎉 Project created successfully!');
|
|
71
72
|
console.log('');
|
|
72
73
|
console.log('🚀 Your project is ready! You can now start developing.');
|
|
74
|
+
|
|
75
|
+
console.log('');
|
|
76
|
+
console.log('🔴 Redis Server Setup:');
|
|
77
|
+
console.log('1. Download Redis:');
|
|
78
|
+
console.log(' Windows: https://github.com/microsoftarchive/redis/releases');
|
|
79
|
+
console.log(' Mac: brew install redis');
|
|
80
|
+
console.log(' Linux: sudo apt-get install redis-server');
|
|
81
|
+
console.log('');
|
|
82
|
+
console.log('2. Start Redis Server:');
|
|
83
|
+
console.log(' Windows: redis-server');
|
|
84
|
+
console.log(' Mac/Linux: sudo service redis-server start');
|
|
85
|
+
console.log('');
|
|
86
|
+
console.log('📁 cd ' + targetPath);
|
|
73
87
|
console.log('🔥 npm run dev to start the development server.');
|
|
74
88
|
console.log('📦 npm run build to build the production files.');
|
|
89
|
+
console.log(`📂 Opening ${targetPath} in your file explorer...`);
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
75
93
|
} catch (error) {
|
|
76
94
|
console.error('Error:', error.message);
|
|
77
95
|
process.exit(1);
|