mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 22:16:15 +00:00
fix importer
fix plugins on docker
This commit is contained in:
@ -109,7 +109,9 @@ public function import(Request $request): RedirectResponse
|
||||
|
||||
// Replace files
|
||||
File::move($extractPath.'/database.sqlite', storage_path('database.sqlite'));
|
||||
File::copy($extractPath.'/.env', base_path('.env'));
|
||||
if (File::exists($extractPath.'/.env')) {
|
||||
File::move($extractPath.'/.env', base_path('.env'));
|
||||
}
|
||||
File::move($extractPath.'/ssh-public.key', storage_path('ssh-public.key'));
|
||||
File::move($extractPath.'/ssh-private.pem', storage_path('ssh-private.pem'));
|
||||
File::moveDirectory($extractPath.'/key-pairs', storage_path('app/key-pairs'));
|
||||
|
Reference in New Issue
Block a user