mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 10:38:14 -05:00
chore: remove unused files and optimize setup scripts
This commit is contained in:
parent
149b75e846
commit
46f8b691be
4
init.sh
4
init.sh
@ -5,6 +5,6 @@ wget https://github.com/composer/composer/releases/latest/download/composer.phar
|
|||||||
php composer.phar install -vvv
|
php composer.phar install -vvv
|
||||||
php artisan xboard:install
|
php artisan xboard:install
|
||||||
|
|
||||||
if [ -f "/etc/init.d/bt" ] || [ "$docker" ]; then
|
if [ -f "/etc/init.d/bt" ] || [ -f "/.dockerenv" ]; then
|
||||||
chown -R www:www $(pwd);
|
chown -R www:www $(pwd);
|
||||||
fi
|
fi
|
21
server.php
21
server.php
@ -1,21 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Laravel - A PHP Framework For Web Artisans
|
|
||||||
*
|
|
||||||
* @package Laravel
|
|
||||||
* @author Taylor Otwell <taylor@laravel.com>
|
|
||||||
*/
|
|
||||||
|
|
||||||
$uri = urldecode(
|
|
||||||
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
|
|
||||||
);
|
|
||||||
|
|
||||||
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
|
|
||||||
// built-in PHP web server. This provides a convenient way to test a Laravel
|
|
||||||
// application without having installed a "real" web server software here.
|
|
||||||
if ($uri !== '/' && file_exists(__DIR__ . '/public' . $uri)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
require_once __DIR__ . '/public/index.php';
|
|
38
start.php
38
start.php
@ -1,38 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Run The Application
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| Once we have the application, we can handle the incoming request
|
|
||||||
| through the kernel, and send the associated response back to
|
|
||||||
| the client's browser allowing them to enjoy the creative
|
|
||||||
| and wonderful application we have prepared for them.
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
$app = require_once __DIR__.'/bootstrap/app.php';
|
|
||||||
|
|
||||||
global $kernel;
|
|
||||||
|
|
||||||
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
|
|
||||||
|
|
||||||
|
|
||||||
function run()
|
|
||||||
{
|
|
||||||
global $kernel;
|
|
||||||
|
|
||||||
ob_start();
|
|
||||||
|
|
||||||
$response = $kernel->handle(
|
|
||||||
$request = Illuminate\Http\Request::capture()
|
|
||||||
);
|
|
||||||
|
|
||||||
$response->send();
|
|
||||||
|
|
||||||
$kernel->terminate($request, $response);
|
|
||||||
|
|
||||||
return ob_get_clean();
|
|
||||||
}
|
|
||||||
|
|
@ -11,12 +11,12 @@ if ! command -v git &> /dev/null; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
git config --global --add safe.directory $(pwd)
|
git config --global --add safe.directory $(pwd)
|
||||||
git fetch --all && git reset --hard origin/new && git pull origin new
|
git fetch --all && git reset --hard origin/master && git pull origin master
|
||||||
rm -rf composer.lock composer.phar
|
rm -rf composer.lock composer.phar
|
||||||
wget https://github.com/composer/composer/releases/latest/download/composer.phar -O composer.phar
|
wget https://github.com/composer/composer/releases/latest/download/composer.phar -O composer.phar
|
||||||
php composer.phar update -vvv
|
php composer.phar update -vvv
|
||||||
php artisan xboard:update
|
php artisan xboard:update
|
||||||
|
|
||||||
if [ -f "/etc/init.d/bt" ] || [ "$docker" ]; then
|
if [ -f "/etc/init.d/bt" ] || [ -f "/.dockerenv" ]; then
|
||||||
chown -R www:www $(pwd);
|
chown -R www:www $(pwd);
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user