mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
fix optimizer
This commit is contained in:
@ -28,7 +28,7 @@ public function create(Request $request): Response
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[Post('login', name: 'login', middleware: 'guest')]
|
#[Post('login', name: 'login.store', middleware: 'guest')]
|
||||||
public function store(Request $request): RedirectResponse
|
public function store(Request $request): RedirectResponse
|
||||||
{
|
{
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
|
@ -24,7 +24,7 @@ public function show(): Response
|
|||||||
return Inertia::render('auth/confirm-password');
|
return Inertia::render('auth/confirm-password');
|
||||||
}
|
}
|
||||||
|
|
||||||
#[Post('/', name: 'password.confirm')]
|
#[Post('/', name: 'password.confirm.store')]
|
||||||
public function store(Request $request): RedirectResponse
|
public function store(Request $request): RedirectResponse
|
||||||
{
|
{
|
||||||
if (! Auth::guard('web')->validate([
|
if (! Auth::guard('web')->validate([
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
use Exception;
|
use Exception;
|
||||||
use Illuminate\Http\RedirectResponse;
|
use Illuminate\Http\RedirectResponse;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
use Illuminate\Support\Facades\Artisan;
|
||||||
use Illuminate\Support\Facades\File;
|
use Illuminate\Support\Facades\File;
|
||||||
use Illuminate\Support\Facades\Storage;
|
use Illuminate\Support\Facades\Storage;
|
||||||
use Illuminate\Validation\ValidationException;
|
use Illuminate\Validation\ValidationException;
|
||||||
@ -121,6 +122,8 @@ public function import(Request $request): RedirectResponse
|
|||||||
move_directory($extractPath.'/server-logs', storage_path('app/server-logs'));
|
move_directory($extractPath.'/server-logs', storage_path('app/server-logs'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Artisan::call('optimize');
|
||||||
|
|
||||||
return redirect()->route('vito-settings')
|
return redirect()->route('vito-settings')
|
||||||
->with('success', 'Settings imported successfully.');
|
->with('success', 'Settings imported successfully.');
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,6 @@ service nginx start
|
|||||||
php /var/www/html/artisan migrate --force
|
php /var/www/html/artisan migrate --force
|
||||||
php /var/www/html/artisan optimize:clear
|
php /var/www/html/artisan optimize:clear
|
||||||
php /var/www/html/artisan optimize
|
php /var/www/html/artisan optimize
|
||||||
php /var/www/html/artisan icons:cache
|
|
||||||
|
|
||||||
php /var/www/html/artisan user:create "$NAME" "$EMAIL" "$PASSWORD"
|
php /var/www/html/artisan user:create "$NAME" "$EMAIL" "$PASSWORD"
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ export default function ConfirmPassword() {
|
|||||||
const submit: FormEventHandler = (e) => {
|
const submit: FormEventHandler = (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
post(route('password.confirm'), {
|
post(route('password.confirm.store'), {
|
||||||
onFinish: () => reset('password'),
|
onFinish: () => reset('password'),
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -30,7 +30,7 @@ export default function Login({ status, canResetPassword }: LoginProps) {
|
|||||||
|
|
||||||
const submit: FormEventHandler = (e) => {
|
const submit: FormEventHandler = (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
post(route('login'), {
|
post(route('login.store'), {
|
||||||
onFinish: () => reset('password'),
|
onFinish: () => reset('password'),
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -206,7 +206,6 @@ php artisan plugins:install https://github.com/vitodeploy/laravel-octane-plugin
|
|||||||
|
|
||||||
# optimize
|
# optimize
|
||||||
php artisan optimize
|
php artisan optimize
|
||||||
php artisan icons:cache
|
|
||||||
|
|
||||||
# start worker
|
# start worker
|
||||||
supervisorctl start worker:*
|
supervisorctl start worker:*
|
||||||
|
Reference in New Issue
Block a user