Skip to content

Commit c782220

Browse files
committed
fix: update key generation and public_html symlink creation in install command
1 parent aeefb28 commit c782220

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Console/Commands/Install.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public function handle()
3838
return;
3939
}
4040
$this->info('Memulai proses installasi');
41+
$this->call('key:generate');
4142
$this->call('migrate:fresh');
4243
$this->info('Membuat User Admin. Silakan Masukkan data Admin Sementara');
4344
$this->call('nova:user');
@@ -190,7 +191,7 @@ public function handle()
190191
$is_public_html = select('Apakah Anda menggunakan public_html sebagai folder publik?', ['Ya', 'Tidak'], 'Ya');
191192
if ($is_public_html == 'Ya') {
192193
$this->info('Membuat symlink public_html');
193-
$process = new Process(['ln', '-s', 'public_html', 'public']);
194+
$process = new Process(['ln', '-s', base_path('public_html'), public_path()]);
194195
$process->run();
195196
}
196197
$this->info('Membuat storage symlink');

0 commit comments

Comments
 (0)