Compare commits

...
Author SHA1 Message Date
eric.bus 2f6d518e67 Update to PHP 8.3.36 2026-10-21 17:37:38 +02:00
NH Gooi 8d6e853d4c Add /ping endpoint 2026-09-09 21:49:33 +02:00
Mischa Spelt 6b6572db67 Force container rebuild (version bump)
Build and Deploy / build (push) Successful in 1m41s
2026-09-07 11:16:21 +02:00
Mischa Spelt b46b24bb83 Fix JS packages 2026-09-07 11:11:17 +02:00
Mischa Spelt b12fb86c1c Bump wavesurfer to version 7+ 2026-08-26 19:38:14 +02:00
mischa.spelt 84dc9d74b9 Untrack vendor folder 2026-08-25 18:38:29 -01:00
mischa.spelt 114d0c7cd9 Add bootstrap/cache to gitignore, untrack vendor file 2026-08-25 18:38:07 -01:00
mischa.spelt bb553924d0 Remove vendor dir 2026-08-25 18:32:34 -01:00
mischa.spelt 73a14e545b Update .gitignore, refresh package-lock 2026-08-25 18:32:28 -01:00
Mischa Spelt 2756aed449 Fix broken Dockerfile
Build and Deploy / build (push) Successful in 1m41s
2026-08-25 21:05:37 +02:00
Mischa Spelt 289908f302 fix: Correct jQuery vendor path (remove unnecessary /dist/ directory)
Build and Deploy / build (push) Failing after 29s
2026-08-25 16:47:25 +02:00
Mischa Spelt 7b9674110e feat: Add npm dependencies and update vendor paths
- Add package.json dependencies: jquery, jquery-ui, moment, daterangepicker, wavesurfer.js, air-datepicker
- Create scripts/setup-vendor.js to copy npm packages to public/assets/vendor
- Update view templates to use vendor paths instead of old /js/ or CDN URLs
- Clean up legacy commented-out scripts in master layout
2026-08-25 16:17:01 +02:00
Mischa Spelt e070c9f374 Refactor: Move npm/composer setup to entrypoint script for proper volume handling 2026-08-25 14:33:08 +02:00
Mischa Spelt 95cf933424 Action runner: Comment out autodeploy
Build and Deploy / build (push) Successful in 1m45s
2026-08-24 11:14:18 +02:00
Mischa Spelt 2aca0010dc Dockerfile: Make sure the storage and cache directories exist and are writeable before running composer install
Build and Deploy / build (push) Failing after 1m29s
2026-08-24 11:11:04 +02:00
Mischa Spelt 4701c3f86d Build docker
Build and Deploy / build (push) Failing after 35s
2026-08-24 11:06:08 +02:00
Mischa Spelt fb53fdb16d Force docker recreation 2026-08-24 11:00:44 +02:00
8472 changed files with 11773 additions and 887283 deletions

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
APP_NAME="NH Gooi (dev)"
APP_ENV=staging
APP_KEY=pHU3XfraRBc4T54pe5hM0WsCz1zZxWG3
APP_DEBUG=true
APP_LOG_LEVEL=error
APP_URL=https://dev.nhgooi.nl
IMAGE_BASE_URL=https://dev.nhgooi.nl/
API_URL=https://api-new.nhgooi.nl/
BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=in-v3.mailjet.com
MAIL_PORT=25
MAIL_USERNAME=08eb4dbf869367bc1478f0777b9de044
MAIL_PASSWORD=eb26e4f3e5e6dbeb8aad361c69bf5ff1
MAIL_ENCRYPTION=null
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
DB_CONNECTION=mysql
DB_HOST=nhgooi.nl
DB_PORT=3306
DB_DATABASE=radio6fm_web
DB_USERNAME=6fmstats
DB_PASSWORD=C6h938EJ2cd5p4cT
CACHE_DRIVER=file
QUEUE_DRIVER=sync
+12 -11
View File
@@ -10,6 +10,7 @@ on:
- 'composer.json'
- 'composer.lock'
- '.gitea/workflows/build-docker.yml'
- 'version' # Change this file to force rebuild
jobs:
build:
@@ -42,14 +43,14 @@ jobs:
docker push "$IMAGE:${{ gitea.sha }}"
docker push "$IMAGE:latest"
- name: Trigger deployment
run: |
curl --fail-with-body \
-X POST \
-H "Content-Type: application/json" \
-d '{
"image": "'"$IMAGE:${{ gitea.sha }}"'",
"commit": "${{ gitea.sha }}",
"repository": "${{ gitea.repository }}"
}' \
"${{ secrets.DEPLOY_WEBHOOK_URL }}"
# - name: Trigger deployment
# run: |
# curl --fail-with-body \
# -X POST \
# -H "Content-Type: application/json" \
# -d '{
# "image": "'"$IMAGE:${{ gitea.sha }}"'",
# "commit": "${{ gitea.sha }}",
# "repository": "${{ gitea.repository }}"
# }' \
# "${{ secrets.DEPLOY_WEBHOOK_URL }}"
+19 -9
View File
@@ -1,13 +1,23 @@
/node_modules
/bootstrap/cache
/public/hot
/public/storage
/storage/*.key
/vendor
/.idea
/.vagrant
.phpunit.cache
node_modules
app/public/build
app/public/hot
app/public/storage
app/storage/*.key
app/bootstrap
app/storage
bootstrap/cache
vendor
.env
.env.backup
.env.production
.phpunit.result.cache
Homestead.json
Homestead.yaml
auth.json
npm-debug.log
yarn-error.log
.env
.fleet
.idea
.vscode
update
Executable → Regular
+15 -9
View File
@@ -1,4 +1,7 @@
FROM php:8.3-apache
FROM php:8.3.36-apache
# Install Node.js
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs
RUN apt-get update && apt-get install -y \
git \
@@ -43,17 +46,15 @@ RUN echo '<Directory /var/www/app/public>\n\
</Directory>' > /etc/apache2/conf-available/laravel.conf \
&& a2enconf laravel
# Copy app files (composer/npm setup happens at runtime via entrypoint)
COPY composer.json composer.lock ./
COPY package.json package-lock.json* ./
COPY scripts/ ./scripts/ 2>/dev/null
# Note: for Laravel, the COPY . . needs to be before the composer install
COPY . .
RUN composer install \
--no-dev \
--prefer-dist \
--no-interaction \
--optimize-autoloader
# Create storage directories
RUN mkdir -p \
storage/app \
storage/framework/cache/data \
@@ -61,7 +62,12 @@ RUN mkdir -p \
storage/framework/views \
storage/logs \
bootstrap/cache \
&& chown -R www-data:www-data storage bootstrap/cache \
&& chmod -R ug+rwX storage bootstrap/cache
public/assets/vendor
# Copy and set up entrypoint script
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]
EXPOSE 80
Vendored Executable → Regular
View File
File mode changed.
+15
View File
@@ -0,0 +1,15 @@
* To add new packages, add a line below:
```json
"new-package": "^1.2.3"
```
* If the npm name differs from vendor folder name: Also update the mapping in setup-vendor.js:
```json
'npm-name': { folder: 'vendor-folder', subdir: 'dist' }
```
* Then regenerate lock file (do this locally, NOT in Docker)
```bash
rm package-lock.json
docker run --rm -v "$PWD:/workspace" -w /workspace node:20 npm install --package-lock-only
```
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
Executable → Regular
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Generated Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
+41
View File
@@ -0,0 +1,41 @@
#!/bin/bash
set -e
cd /var/www/app
# Set HOME for npm cache (www-data user needs writable cache directory)
export HOME=/tmp
echo "Setting up dependencies..."
# Create vendor directories and fix permissions
echo "Fixing permissions..."
mkdir -p bootstrap/cache storage/framework storage/logs public/assets/vendor
chown -R www-data:www-data bootstrap/cache storage/framework storage/logs public/assets/vendor
chmod -R ug+rwX bootstrap/cache storage/framework storage/logs public/assets/vendor
# Install PHP dependencies
echo "Installing PHP packages..."
composer install \
--no-dev \
--prefer-dist \
--no-interaction \
--optimize-autoloader
# Install npm dependencies if package.json has dependencies
if grep -q "\"dependencies\"" package.json; then
echo "Installing npm packages..."
npm ci --omit=dev
node scripts/setup-vendor.js
fi
# Fix permissions
echo "Fixing permissions..."
chown -R www-data:www-data \
bootstrap/cache \
public/assets/vendor
chmod -R ug+rwX bootstrap/cache
echo "✓ Setup complete, starting Apache..."
exec apache2-foreground
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
+14
View File
@@ -0,0 +1,14 @@
# Set ownership
chown -R www-data:www-data .
# Normal permissions
find . -type d -exec chmod 775 {} \;
find . -type f -exec chmod 664 {} \;
# Laravel writable directories
find storage bootstrap/cache -type d -exec chmod 775 {} \;
find storage bootstrap/cache -type f -exec chmod 664 {} \;
# Laravel CLI
chmod 755 artisan
Executable → Regular
View File
File mode changed.
Generated Executable → Regular
+56 -1
View File
@@ -1,9 +1,18 @@
{
"name": "nhgooi.nl",
"name": "workspace",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"hasInstallScript": true,
"dependencies": {
"air-datepicker": "^3.5.0",
"daterangepicker": "^3.1.0",
"jquery": "^3.7.0",
"jquery-ui": "^1.13.0",
"moment": "^2.30.0",
"wavesurfer.js": "^7.8.0"
},
"devDependencies": {
"grunt": "^1.6.1",
"grunt-contrib-concat": "^2.1.0",
@@ -18,6 +27,12 @@
"integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
"dev": true
},
"node_modules/air-datepicker": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/air-datepicker/-/air-datepicker-3.6.0.tgz",
"integrity": "sha512-+txUkqa949rXBJDmkQAIb/GehZECJYF4rm9XJxVYtEX22C9WvBpE/XwCUQZBopKIkpg4ycAySJ9lH3JOg9qQTw==",
"license": "MIT"
},
"node_modules/ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
@@ -241,6 +256,16 @@
"node": "*"
}
},
"node_modules/daterangepicker": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/daterangepicker/-/daterangepicker-3.1.0.tgz",
"integrity": "sha512-DxWXvvPq4srWLCqFugqSV+6CBt/CvQ0dnpXhQ3gl0autcIDAruG1PuGG3gC7yPRNytAD1oU1AcUOzaYhOawhTw==",
"license": "MIT",
"dependencies": {
"jquery": ">=1.10",
"moment": "^2.9.0"
}
},
"node_modules/debug": {
"version": "3.2.7",
"resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",
@@ -1075,6 +1100,21 @@
"node": ">=0.10.0"
}
},
"node_modules/jquery": {
"version": "3.7.1",
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz",
"integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==",
"license": "MIT"
},
"node_modules/jquery-ui": {
"version": "1.14.2",
"resolved": "https://registry.npmjs.org/jquery-ui/-/jquery-ui-1.14.2.tgz",
"integrity": "sha512-1gSl7PUjyipa2adSr780Ujk16faicrV7PjPPzPtvWk7tTqBnsqp67NNV9jZK2+BIxUPXWSnIUU/LBCgwgGZE+Q==",
"license": "MIT",
"dependencies": {
"jquery": ">=1.12.0 <5.0.0"
}
},
"node_modules/js-yaml": {
"version": "3.14.1",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
@@ -1207,6 +1247,15 @@
"node": "*"
}
},
"node_modules/moment": {
"version": "2.30.1",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz",
"integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==",
"license": "MIT",
"engines": {
"node": "*"
}
},
"node_modules/ms": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
@@ -1740,6 +1789,12 @@
"node": ">= 0.10"
}
},
"node_modules/wavesurfer.js": {
"version": "7.12.11",
"resolved": "https://registry.npmjs.org/wavesurfer.js/-/wavesurfer.js-7.12.11.tgz",
"integrity": "sha512-Sx0yZIz7jRJ9J9p7UL+pl9y0UQBB6UN/XNo+R7Gy4tCR5xZI9jMyA0dnt1R8TMVSQ4LZ10SeB2HJYQ+dV2dPSA==",
"license": "BSD-3-Clause"
},
"node_modules/websocket-driver": {
"version": "0.7.4",
"resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz",
Executable → Regular
+12
View File
@@ -1,12 +1,24 @@
{
"private": true,
"type": "module",
"scripts": {
"dev": "grunt watch",
"build": "grunt uglify concat",
"postinstall": "node scripts/setup-vendor.js || true",
"sass": "sass resources/assets/sass:public/css",
"sass-watch": "sass --watch resources/assets/sass:public/css",
"sass-minify": "sass resources/assets/sass/style.scss:public/css/style.min.css --style compressed",
"sass-minify-watch": "sass --watch resources/assets/sass/style.scss:public/css/style.min.css --style compressed",
"js-watch": "grunt watch"
},
"dependencies": {
"jquery": "^3.7.0",
"jquery-ui": "^1.13.0",
"moment": "^2.30.0",
"daterangepicker": "^3.1.0",
"wavesurfer.js": "^7.8.0",
"air-datepicker": "^3.5.0"
},
"devDependencies": {
"grunt": "^1.6.1",
"grunt-contrib-concat": "^2.1.0",
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
View File
File mode changed.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File
File mode changed.

Before

Width:  |  Height:  |  Size: 183 KiB

After

Width:  |  Height:  |  Size: 183 KiB

Executable → Regular
View File
File mode changed.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Executable → Regular
View File
File mode changed.

Before

Width:  |  Height:  |  Size: 606 B

After

Width:  |  Height:  |  Size: 606 B

Executable → Regular
View File
File mode changed.

Before

Width:  |  Height:  |  Size: 417 B

After

Width:  |  Height:  |  Size: 417 B

Vendored Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Vendored Executable → Regular
View File
File mode changed.
View File
File mode changed.
Vendored Executable → Regular
View File
File mode changed.
View File
File mode changed.
Executable → Regular
View File
File mode changed.

Before

Width:  |  Height:  |  Size: 951 B

After

Width:  |  Height:  |  Size: 951 B

Executable → Regular
View File
File mode changed.

Before

Width:  |  Height:  |  Size: 637 B

After

Width:  |  Height:  |  Size: 637 B

View File
File mode changed.
View File
File mode changed.
View File
File mode changed.

Before

Width:  |  Height:  |  Size: 274 B

After

Width:  |  Height:  |  Size: 274 B

View File
File mode changed.

Before

Width:  |  Height:  |  Size: 274 B

After

Width:  |  Height:  |  Size: 274 B

View File
File mode changed.

Before

Width:  |  Height:  |  Size: 271 B

After

Width:  |  Height:  |  Size: 271 B

Loaded 100 of 8472 files, more files were not shown because too many files have changed in this diff. Show more