install-rynude 1.0.3 → 1.0.5

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.
Files changed (2) hide show
  1. package/index.js +4 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -100,6 +100,8 @@ async function run() {
100
100
  fs.removeSync(backupDir); // clean up tmp
101
101
 
102
102
  execSync('php artisan migrate --force', { cwd: INSTALL_DIR, stdio: 'ignore' });
103
+ execSync('php artisan db:seed --class=AiModelSeeder --force', { cwd: INSTALL_DIR, stdio: 'ignore' });
104
+ execSync('php artisan optimize:clear', { cwd: INSTALL_DIR, stdio: 'ignore' });
103
105
  envSpinner.succeed('Konfigurasi dan database lama Anda berhasil dipulihkan (Aman!).');
104
106
  } else {
105
107
  // Fresh Install
@@ -110,7 +112,9 @@ async function run() {
110
112
 
111
113
  fs.ensureFileSync(path.join(INSTALL_DIR, 'database', 'database.sqlite'));
112
114
  execSync('php artisan key:generate', { cwd: INSTALL_DIR, stdio: 'ignore' });
115
+ execSync('php artisan storage:link', { cwd: INSTALL_DIR, stdio: 'ignore' });
113
116
  execSync('php artisan migrate:fresh --seed', { cwd: INSTALL_DIR, stdio: 'ignore' });
117
+ execSync('php artisan optimize:clear', { cwd: INSTALL_DIR, stdio: 'ignore' });
114
118
  envSpinner.succeed('Konfigurasi dan database siap.');
115
119
  }
116
120
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "install-rynude",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Auto-installer for Rynude AI",
5
5
  "main": "index.js",
6
6
  "type": "module",