fix deployement

This commit is contained in:
Romulus21
2023-09-24 15:53:11 +02:00
parent fcee5f1f86
commit 00e7bd1808
6 changed files with 4 additions and 1694 deletions

2
.gitignore vendored
View File

@@ -8,7 +8,7 @@
/vendor
.env
.env.backup
.env.production
.env.prod
.phpunit.result.cache
Homestead.json
Homestead.yaml

View File

@@ -1,4 +1,5 @@
deploy: public/build/manifest.json
scp raspigate:/var/www/html/lara-bermite/.env .env.prod
pnpm run build
ssh raspigate 'cd /var/www/html/lara-bermite && git pull origin master && make install'
scp -r public/build raspigate:/var/www/html/lara-bermite/public

View File

@@ -26,8 +26,7 @@
"rollup-plugin-copy": "^3.5.0",
"tailwindcss": "^3.3.3",
"typescript": "^5.2.2",
"vite": "^4.4.9",
"vite-plugin-pwa": "^0.16.5"
"vite": "^4.4.9"
},
"dependencies": {
"d3": "^7.8.5",

1669
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -3,6 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<link rel="icon" href="/images/favicon.ico" sizes="any">
<link rel="icon" href="/images/favicon.svg" type="image/svg+xml">

View File

@@ -1,7 +1,6 @@
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import react from '@vitejs/plugin-react';
import { VitePWA } from 'vite-plugin-pwa'
import copy from "rollup-plugin-copy";
export default defineConfig({
@@ -16,26 +15,5 @@ export default defineConfig({
{ src: 'resources/images/*', dest: 'public/images' },
]
}),
// VitePWA({
// registerType: 'autoUpdate',
// workbox: {
// globPatterns: ['**/*.{js,css,html,ico,png,svg}']
// },
// manifest: {
// name: 'Bermite',
// short_name: 'Bermite',
// lang: 'fr',
// description: 'Une application de suivi météo',
// theme_color: '#ffffff',
// icons: [
// {
// src: 'images/weather.png',
// sizes: '521x512',
// type: 'image/png',
// }
// ],
// display: 'standalone',
// }
// }),
],
});