Skip to content

Commit

Permalink
local dev fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dasscheman committed Dec 23, 2024
1 parent 52172e7 commit 73ce96d
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 20 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ yarn-error.log
/.fleet
/.idea
/.vscode
/docker/keys.env
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ services:
- hts-appteam-local-dev
ports:
- "9000:9000"
env_file:
- docker/keys.env
environment:
VIRTUAL_HOST: openshift.docker.dev
VIRTUAL_PROTO: https
VIRTUAL_PORT: 443
DUSK_DRIVER_URL: http://seleniarm.docker.dev:4444/wd/hub
DUSK_START_MAXIMIZED: true
frontend:
container_name: openshift_frontend
build:
Expand Down
6 changes: 6 additions & 0 deletions docker/backend-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ echo " ⭐️️️️️⭐️️️️️⭐️️️️️⭐️ VERSIE: 1 "
echo "⭐️ Run artisan migrate";
php artisan migrate --seed

echo "⭐️ Set folder access";
chmod a+w -R /var/www/bootstrap/cache
chmod a+w -R /var/www/public
chmod a+w -R /var/www/vendor
chmod a+w -R /var/www/storage

php-fpm
6 changes: 0 additions & 6 deletions resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@
<style>
[x-cloak] { display: none !important; }
</style>
<!-- Layout JS -->
<script type="application/javascript" src="{{ asset('js/hts-appteam-base/auth.js') }}"></script>

<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="{{ asset('/css/hts-appteam-base/auth.css') }}">
{{-- <meta name="theme-color" content="#7952b3">--}}

<!-- Include Plausible.IO script for privacy friendly stats -->
<script defer data-domain="<?= parse_url(env('APP_URL'), PHP_URL_HOST) ?>" src="https://plausible.io/js/plausible.js"></script>

Expand Down
28 changes: 14 additions & 14 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,22 @@ export default defineConfig({
'~bootstrap': path.resolve(__dirname, 'node_modules/bootstrap'),
}
},
server: {
port: 8080,
hmr: {
host: 'localhost',
},
},
// server: {
// https: {
// key: fs.readFileSync('docker/certificates/docker.dev.key'),
// cert: fs.readFileSync('docker/certificates/docker.dev.crt'),
// },
// host: true,
// port: `${port}`,
// port: 8080,
// hmr: {
// host: `${host}`,
// protocol: 'wss'
// host: 'localhost',
// },
// },
server: {
https: {
key: fs.readFileSync('docker/certificates/docker.dev.key'),
cert: fs.readFileSync('docker/certificates/docker.dev.crt'),
},
host: true,
port: 7050,
hmr: {
host: 'openshift.docker.dev',
protocol: 'wss'
},
},
});

0 comments on commit 73ce96d

Please sign in to comment.