Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.x] Fixes CLI storage path for Laravel 11 #253

Merged
merged 2 commits into from
Apr 19, 2024
Merged

Conversation

joedixon
Copy link
Contributor

When a project is built, Vapor CLI adjusts the contents of the artisan file to correctly set the storage path of the app.

This PR adjusts the artisan file for Laravel 11 as below:

#!/usr/bin/env php
<?php
ini_set('display_errors', '1');
error_reporting(E_ALL);


use Symfony\Component\Console\Input\ArgvInput;

define('LARAVEL_START', microtime(true));

// Register the Composer autoloader...
require __DIR__.'/vendor/autoload.php';

// Bootstrap Laravel...
$app = require_once __DIR__.'/bootstrap/app.php';
$app->useStoragePath(Laravel\Vapor\Runtime\StorageDirectories::PATH);

// Handle the command...
$status = $app->handleCommand(new ArgvInput);

exit($status);

@joedixon joedixon marked this pull request as ready for review April 19, 2024 16:01
@taylorotwell taylorotwell merged commit d0030df into master Apr 19, 2024
53 checks passed
@taylorotwell taylorotwell deleted the fix/storage-path branch April 19, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants