Small changes to deploy
This commit is contained in:
21
Taskfile.yml
Normal file
21
Taskfile.yml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# https://taskfile.dev
|
||||||
|
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
vars:
|
||||||
|
GREETING: Hello, World!
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
default:
|
||||||
|
cmds:
|
||||||
|
- echo "{{.GREETING}}"
|
||||||
|
silent: true
|
||||||
|
deploy:
|
||||||
|
cmds:
|
||||||
|
- vendor/bin/dep deploy
|
||||||
|
build:
|
||||||
|
cmds:
|
||||||
|
- vendor/bin/dep build
|
||||||
|
ssh:
|
||||||
|
cmds:
|
||||||
|
- vendor/bin/dep ssh
|
||||||
37
app/Console/Commands/Import.php
Normal file
37
app/Console/Commands/Import.php
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Console\Commands;
|
||||||
|
|
||||||
|
use Illuminate\Console\Command;
|
||||||
|
use Illuminate\Support\Facades\Storage;
|
||||||
|
|
||||||
|
class Import extends Command
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The name and signature of the console command.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $signature = 'import {dir}';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The console command description.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $description = 'Import data from gzipped backup init files';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Execute the console command.
|
||||||
|
*/
|
||||||
|
public function handle()
|
||||||
|
{
|
||||||
|
$dir = $this->argument('dir');
|
||||||
|
|
||||||
|
$files = Storage::disk('loacl')->files($dir);
|
||||||
|
|
||||||
|
foreach ($files as $file) {
|
||||||
|
var_dump($file);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -13,7 +13,9 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.1",
|
"php": "^8.1",
|
||||||
|
"deployer/deployer": "^7.4",
|
||||||
"guzzlehttp/guzzle": "^7.2",
|
"guzzlehttp/guzzle": "^7.2",
|
||||||
|
"halaxa/json-machine": "^1.1",
|
||||||
"inertiajs/inertia-laravel": "^0.6.9",
|
"inertiajs/inertia-laravel": "^0.6.9",
|
||||||
"laravel/framework": "^10.0",
|
"laravel/framework": "^10.0",
|
||||||
"laravel/sanctum": "^3.2",
|
"laravel/sanctum": "^3.2",
|
||||||
|
|||||||
104
composer.lock
generated
104
composer.lock
generated
@@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "9a1b5d49a2cba5dba83ce94b01df64a7",
|
"content-hash": "18a65c0913751e9ea5df12db16685503",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "brick/math",
|
"name": "brick/math",
|
||||||
@@ -61,6 +61,49 @@
|
|||||||
],
|
],
|
||||||
"time": "2023-01-15T23:15:59+00:00"
|
"time": "2023-01-15T23:15:59+00:00"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "deployer/deployer",
|
||||||
|
"version": "v7.4.0",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/deployphp/deployer.git",
|
||||||
|
"reference": "b438dc22545ab2ecc67d79c80c7a79c156de3599"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/deployphp/deployer/zipball/b438dc22545ab2ecc67d79c80c7a79c156de3599",
|
||||||
|
"reference": "b438dc22545ab2ecc67d79c80c7a79c156de3599",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"bin": [
|
||||||
|
"dep"
|
||||||
|
],
|
||||||
|
"type": "library",
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Anton Medvedev",
|
||||||
|
"email": "anton@medv.io"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Deployment Tool",
|
||||||
|
"homepage": "https://deployer.org",
|
||||||
|
"support": {
|
||||||
|
"docs": "https://deployer.org/docs",
|
||||||
|
"issues": "https://github.com/deployphp/deployer/issues",
|
||||||
|
"source": "https://github.com/deployphp/deployer"
|
||||||
|
},
|
||||||
|
"funding": [
|
||||||
|
{
|
||||||
|
"url": "https://github.com/sponsors/antonmedv",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"time": "2024-04-17T20:55:49+00:00"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "dflydev/dot-access-data",
|
"name": "dflydev/dot-access-data",
|
||||||
"version": "v3.0.2",
|
"version": "v3.0.2",
|
||||||
@@ -970,6 +1013,65 @@
|
|||||||
],
|
],
|
||||||
"time": "2023-08-27T10:19:19+00:00"
|
"time": "2023-08-27T10:19:19+00:00"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "halaxa/json-machine",
|
||||||
|
"version": "1.1.4",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/halaxa/json-machine.git",
|
||||||
|
"reference": "5147f38f74d7ab3e27733e3f3bdabbd2fd28e3fa"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/halaxa/json-machine/zipball/5147f38f74d7ab3e27733e3f3bdabbd2fd28e3fa",
|
||||||
|
"reference": "5147f38f74d7ab3e27733e3f3bdabbd2fd28e3fa",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": "7.0 - 8.3"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"ext-json": "*",
|
||||||
|
"friendsofphp/php-cs-fixer": "^3.0",
|
||||||
|
"phpstan/phpstan": "^1.10",
|
||||||
|
"phpunit/phpunit": "^8.0"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"ext-json": "To run JSON Machine out of the box without custom decoders.",
|
||||||
|
"guzzlehttp/guzzle": "To run example with GuzzleHttp"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"JsonMachine\\": "src/"
|
||||||
|
},
|
||||||
|
"exclude-from-classmap": [
|
||||||
|
"src/autoloader.php"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"Apache-2.0"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Filip Halaxa",
|
||||||
|
"email": "filip@halaxa.cz"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Efficient, easy-to-use and fast JSON pull parser",
|
||||||
|
"support": {
|
||||||
|
"issues": "https://github.com/halaxa/json-machine/issues",
|
||||||
|
"source": "https://github.com/halaxa/json-machine/tree/1.1.4"
|
||||||
|
},
|
||||||
|
"funding": [
|
||||||
|
{
|
||||||
|
"url": "https://ko-fi.com/G2G57KTE4",
|
||||||
|
"type": "other"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"time": "2023-11-28T21:12:40+00:00"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "inertiajs/inertia-laravel",
|
"name": "inertiajs/inertia-laravel",
|
||||||
"version": "v0.6.10",
|
"version": "v0.6.10",
|
||||||
|
|||||||
27
deploy.yaml
Normal file
27
deploy.yaml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
import:
|
||||||
|
- recipe/laravel.php
|
||||||
|
- contrib/php-fpm.php
|
||||||
|
|
||||||
|
config:
|
||||||
|
repository: 'https://git.bh.ttx.sk/jaro/rpotisk-quasar.git'
|
||||||
|
|
||||||
|
hosts:
|
||||||
|
nuc.lan:
|
||||||
|
remote_user: deployer
|
||||||
|
branch: master
|
||||||
|
deploy_path: '/var/www/html/rpotisk2'
|
||||||
|
bin/php: /usr/bin/php82
|
||||||
|
php_fpm_version: 8.2
|
||||||
|
php_fpm_service: php82-php-fpm
|
||||||
|
after:
|
||||||
|
deploy: php-fpm:reload
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
build:
|
||||||
|
- cd: "/var/www/html/rpotisk2/current"
|
||||||
|
- run: "pnpm install"
|
||||||
|
- run: "pnpm run build"
|
||||||
|
|
||||||
|
after:
|
||||||
|
deploy:failed: deploy:unlock
|
||||||
|
|
||||||
2297
pnpm-lock.yaml
generated
2297
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
BIN
resources/js/.DS_Store
vendored
BIN
resources/js/.DS_Store
vendored
Binary file not shown.
25
resources/js/components/SvgIcon.vue
Normal file
25
resources/js/components/SvgIcon.vue
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<script setup>
|
||||||
|
import { shallowRef } from 'vue'
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
src: {
|
||||||
|
type: Object,
|
||||||
|
required: true
|
||||||
|
},
|
||||||
|
color: {
|
||||||
|
type: Object,
|
||||||
|
required: false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
let svgComponent = shallowRef(null)
|
||||||
|
|
||||||
|
props.src
|
||||||
|
.then((module) => {
|
||||||
|
svgComponent.value = module.default
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<component :is="svgComponent" fill-class-name="blue" />
|
||||||
|
</template>
|
||||||
@@ -1,21 +1,18 @@
|
|||||||
<template>
|
<template>
|
||||||
<q-layout view="lHh Lpr lFf">
|
<q-layout view="lHh Lpr lFf">
|
||||||
<q-header elevated>
|
<q-header elevated>
|
||||||
<q-toolbar>
|
<q-toolbar class="bg-teal-4 ">
|
||||||
<q-btn
|
<q-btn flat dense round icon="menu" aria-label="Menu" @click="toggleLeftDrawer" class="q-mr-md" />
|
||||||
flat
|
<SvgIcon fill="rgb(29 78 216)" :src="import('@/Data/tis_full-1.svg')" class="q-mr-sm" />
|
||||||
dense
|
|
||||||
round
|
|
||||||
icon="menu"
|
|
||||||
aria-label="Menu"
|
|
||||||
@click="toggleLeftDrawer"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<q-toolbar-title>Register pravinickych osob TISK</q-toolbar-title>
|
<q-toolbar-title>Register právinických osôb </q-toolbar-title>
|
||||||
|
|
||||||
<div>Quasar v{{ $q.version }}</div>
|
<div>Quasar v{{ $q.version }}</div>
|
||||||
</q-toolbar>
|
</q-toolbar>
|
||||||
</q-header>
|
</q-header>
|
||||||
|
<q-icon class="text-dark" size="lg">
|
||||||
|
|
||||||
|
</q-icon>
|
||||||
|
|
||||||
<q-page-container>
|
<q-page-container>
|
||||||
<slot />
|
<slot />
|
||||||
@@ -26,6 +23,8 @@
|
|||||||
<script>
|
<script>
|
||||||
import { defineComponent, ref } from "vue";
|
import { defineComponent, ref } from "vue";
|
||||||
import EssentialLink from "../components/EssentialLink.vue";
|
import EssentialLink from "../components/EssentialLink.vue";
|
||||||
|
import SvgIcon from "../components/SvgIcon.vue";
|
||||||
|
|
||||||
|
|
||||||
const linksList = [
|
const linksList = [
|
||||||
{
|
{
|
||||||
@@ -59,6 +58,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
components: {
|
components: {
|
||||||
EssentialLink,
|
EssentialLink,
|
||||||
|
SvgIcon,
|
||||||
},
|
},
|
||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
|
|||||||
Reference in New Issue
Block a user