- mysql -u root -e "GRANT ALL ON \`bookstack-test\`.* TO 'bookstack-test'@'localhost';"
- mysql -u root -e "FLUSH PRIVILEGES;"
- phpenv config-rm xdebug.ini
- - composer dump-autoload --no-interaction
- composer install --prefer-dist --no-interaction
- php artisan clear-compiled -n
- php artisan optimize -n
#!/usr/bin/env php
<?php
+define('LARAVEL_START', microtime(true));
+
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|
*/
-require __DIR__.'/bootstrap/autoload.php';
+require __DIR__.'/vendor/autoload.php';
$app = require_once __DIR__.'/bootstrap/app.php';
| Shutdown The Application
|--------------------------------------------------------------------------
|
-| Once Artisan has finished running. We will fire off the shutdown events
+| Once Artisan has finished running, we will fire off the shutdown events
| so that any final work may be done by the application before we shut
| down the process. This is the last thing to happen to the request.
|
$kernel->terminate($input, $status);
-exit($status);
+exit($status);
\ No newline at end of file
+++ /dev/null
-<?php
-
-define('LARAVEL_START', microtime(true));
-
-/*
-|--------------------------------------------------------------------------
-| Register The Composer Auto Loader
-|--------------------------------------------------------------------------
-|
-| Composer provides a convenient, automatically generated class loader
-| for our application. We just need to utilize it! We'll require it
-| into the script here so that we do not have to worry about the
-| loading of any our classes "manually". Feels great to relax.
-|
-*/
-
-require __DIR__.'/../app/helpers.php';
-require __DIR__.'/../vendor/autoload.php';
-
-/*
-|--------------------------------------------------------------------------
-| Include The Compiled Class File
-|--------------------------------------------------------------------------
-|
-| To dramatically increase your application's performance, you may use a
-| compiled class file which contains all of the classes commonly used
-| by a request. The Artisan "optimize" is used to create this file.
-|
-*/
-
-$compiledPath = __DIR__.'/cache/compiled.php';
-
-if (file_exists($compiledPath)) {
- require $compiledPath;
-}
"php -r \"!file_exists('bootstrap/cache/compiled.php') || @unlink('bootstrap/cache/compiled.php');\""
],
"post-install-cmd": [
- "Illuminate\\Foundation\\ComposerScripts::postInstall",
"php artisan cache:clear",
"php artisan view:clear"
],
- "post-update-cmd": [
- "Illuminate\\Foundation\\ComposerScripts::postUpdate"
- ],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover"
]
},
"config": {
+ "optimize-autoloader": true,
"preferred-install": "dist",
"php": "7.0"
}
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
- * @author Taylor Otwell <taylorotwell@gmail.com>
+ * @author Taylor Otwell <taylor@laravel.com>
*/
+define('LARAVEL_START', microtime(true));
+
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
-| loading any of our classes later on. It feels nice to relax.
+| loading any of our classes later on. It feels great to relax.
|
*/
-require __DIR__.'/../bootstrap/autoload.php';
+require __DIR__.'/../vendor/autoload.php';
/*
|--------------------------------------------------------------------------
$response->send();
-$kernel->terminate($request, $response);
+$kernel->terminate($request, $response);
\ No newline at end of file