production deployment stuff

This commit is contained in:
tux
2026-04-29 19:17:57 +02:00
parent ce57669263
commit ebcd9672c2
2 changed files with 20 additions and 1 deletions
+3 -1
View File
@@ -33,4 +33,6 @@ RUN npm run build
EXPOSE 9000 EXPOSE 9000
CMD ["php-fpm"] RUN mv /var/www/html /src
COPY docker/run-mareike.sh /usr/local/bin/
CMD ["run-mareike.sh"]
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
set -e
rsync -rlDog --chown $USER:$GROUPNAME --delete --exclude=/storage /src /var/www/html
install -d -m 0755 -o $USER -g $GROUPNAME \
storage \
storage/framework \
storage/framework/cache \
storage/framework/sessions \
storage/framework/views \
storage/app \
storage/app/private \
storage/logs
php artisan migrate --force
exec "php-fpm"