mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 02:11:36 +00:00
fix static build
This commit is contained in:
parent
37f502d6dd
commit
321465d3e2
@ -18,7 +18,6 @@
|
||||
* @property ?int $project_id
|
||||
* @property Server[] $servers
|
||||
* @property Project $project
|
||||
* @property string $image_url
|
||||
*/
|
||||
class ServerProvider extends AbstractModel
|
||||
{
|
||||
@ -75,11 +74,6 @@ public static function getByProjectId(int $projectId): Builder
|
||||
});
|
||||
}
|
||||
|
||||
public function getImageUrlAttribute(): string
|
||||
{
|
||||
return url('/static/images/'.$this->provider.'.svg');
|
||||
}
|
||||
|
||||
public static function regions(?int $id): array
|
||||
{
|
||||
if (! $id) {
|
||||
|
@ -25,7 +25,6 @@
|
||||
* @property string $status
|
||||
* @property bool $is_default
|
||||
* @property Server $server
|
||||
* @property string $image_url
|
||||
*/
|
||||
class Service extends AbstractModel
|
||||
{
|
||||
@ -124,9 +123,4 @@ public function disable(): void
|
||||
{
|
||||
$this->unit && app(Manage::class)->disable($this);
|
||||
}
|
||||
|
||||
public function getImageUrlAttribute(): string
|
||||
{
|
||||
return url('/static/images/'.$this->name.'.svg');
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,6 @@
|
||||
* @property ?string $url
|
||||
* @property string $access_token
|
||||
* @property ?int $project_id
|
||||
* @property string $image_url
|
||||
*/
|
||||
class SourceControl extends AbstractModel
|
||||
{
|
||||
@ -67,9 +66,4 @@ public static function getByProjectId(int $projectId): Builder
|
||||
$query->where('project_id', $projectId)->orWhereNull('project_id');
|
||||
});
|
||||
}
|
||||
|
||||
public function getImageUrlAttribute(): string
|
||||
{
|
||||
return url('/static/images/'.$this->provider.'.svg');
|
||||
}
|
||||
}
|
||||
|
@ -14,7 +14,6 @@
|
||||
* @property array $credentials
|
||||
* @property User $user
|
||||
* @property int $project_id
|
||||
* @property string $image_url
|
||||
*/
|
||||
class StorageProvider extends AbstractModel
|
||||
{
|
||||
@ -63,9 +62,4 @@ public static function getByProjectId(int $projectId): Builder
|
||||
$query->where('project_id', $projectId)->orWhereNull('project_id');
|
||||
});
|
||||
}
|
||||
|
||||
public function getImageUrlAttribute(): string
|
||||
{
|
||||
return url('/static/images/'.$this->provider.'.svg');
|
||||
}
|
||||
}
|
||||
|
@ -61,12 +61,9 @@ service php8.2-fpm start
|
||||
service nginx start
|
||||
|
||||
php /var/www/html/artisan migrate --force
|
||||
php /var/www/html/artisan config:clear
|
||||
php /var/www/html/artisan config:cache
|
||||
php /var/www/html/artisan route:clear
|
||||
php /var/www/html/artisan route:cache
|
||||
php /var/www/html/artisan view:clear
|
||||
php /var/www/html/artisan view:cache
|
||||
php /var/www/html/artisan optimize:clear
|
||||
php /var/www/html/artisan optimize
|
||||
php /var/www/html/artisan icons:cache
|
||||
|
||||
php /var/www/html/artisan user:create "$NAME" "$EMAIL" "$PASSWORD"
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
1
public/build/assets/theme-fd558c42.css
Normal file
1
public/build/assets/theme-fd558c42.css
Normal file
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"resources/css/filament/app/theme.css": {
|
||||
"file": "assets/theme-5ee727d8.css",
|
||||
"file": "assets/theme-fd558c42.css",
|
||||
"isEntry": true,
|
||||
"src": "resources/css/filament/app/theme.css"
|
||||
},
|
||||
|
@ -22,8 +22,7 @@ export default {
|
||||
],
|
||||
content: [
|
||||
"./app/Web/**/*.php",
|
||||
"./resources/views/web/**/*.blade.php",
|
||||
"./resources/views/components/**/*.blade.php",
|
||||
"./resources/views/**/*.blade.php",
|
||||
"./vendor/filament/**/*.blade.php",
|
||||
],
|
||||
};
|
||||
|
@ -9,7 +9,7 @@ class="flex w-full cursor-pointer items-center justify-center rounded-md border-
|
||||
:class="{ 'border-primary-600': state === '{{ $p }}', 'border-primary-200 dark:border-primary-600 dark:border-opacity-20': state !== '{{ $p }}' }"
|
||||
>
|
||||
<div class="flex w-full flex-col items-center justify-center text-center">
|
||||
<img src="{{ asset("static/images/" . $p . ".svg") }}" class="h-7" alt="Server" />
|
||||
<x-icon :name="$p" class="h-7" />
|
||||
<span class="md:text-normal mt-2 hidden text-sm md:block">
|
||||
{{ $p }}
|
||||
</span>
|
||||
|
@ -91,7 +91,7 @@ service nginx start
|
||||
export V_PHP_VERSION="8.2"
|
||||
add-apt-repository ppa:ondrej/php -y
|
||||
apt update
|
||||
apt install -y php${V_PHP_VERSION} php${V_PHP_VERSION}-fpm php${V_PHP_VERSION}-mbstring php${V_PHP_VERSION}-mcrypt php${V_PHP_VERSION}-gd php${V_PHP_VERSION}-xml php${V_PHP_VERSION}-curl php${V_PHP_VERSION}-gettext php${V_PHP_VERSION}-zip php${V_PHP_VERSION}-bcmath php${V_PHP_VERSION}-soap php${V_PHP_VERSION}-redis php${V_PHP_VERSION}-sqlite3
|
||||
apt install -y php${V_PHP_VERSION} php${V_PHP_VERSION}-fpm php${V_PHP_VERSION}-mbstring php${V_PHP_VERSION}-mcrypt php${V_PHP_VERSION}-gd php${V_PHP_VERSION}-xml php${V_PHP_VERSION}-curl php${V_PHP_VERSION}-gettext php${V_PHP_VERSION}-zip php${V_PHP_VERSION}-bcmath php${V_PHP_VERSION}-soap php${V_PHP_VERSION}-redis php${V_PHP_VERSION}-sqlite3 php${V_PHP_VERSION}-intl
|
||||
if ! sed -i "s/www-data/${V_USERNAME}/g" /etc/php/${V_PHP_VERSION}/fpm/pool.d/www.conf; then
|
||||
echo 'Error installing PHP' && exit 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user