diff --git a/init.sh b/init.sh index 9de403d..bbc573a 100644 --- a/init.sh +++ b/init.sh @@ -5,6 +5,6 @@ wget https://github.com/composer/composer/releases/latest/download/composer.phar php composer.phar install -vvv 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); -fi +fi \ No newline at end of file diff --git a/server.php b/server.php deleted file mode 100755 index 7f109d9..0000000 --- a/server.php +++ /dev/null @@ -1,21 +0,0 @@ - - */ - -$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'; diff --git a/start.php b/start.php deleted file mode 100644 index 01c8bf7..0000000 --- a/start.php +++ /dev/null @@ -1,38 +0,0 @@ -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(); -} - diff --git a/update.sh b/update.sh index eb5dc8e..d4a6d0b 100755 --- a/update.sh +++ b/update.sh @@ -11,12 +11,12 @@ if ! command -v git &> /dev/null; then fi 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 wget https://github.com/composer/composer/releases/latest/download/composer.phar -O composer.phar php composer.phar update -vvv 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); fi