Skip to content

A self-hosted media server and file management system

setup batch file

aminnausin8d2fd15293ce
diff --git a/setup.bat b/setup.bat
new file mode 100644
index 00000000..e28b39fb
--- /dev/null
+++ b/setup.bat
@@ -0,0 +1,31 @@
+@echo off
+setlocal EnableDelayedExpansion
+
+:: Exit immediately if a command exits with a non-zero status
+set -e
+
+:: Pull the latest changes from the repository
+git pull
+
+:: Install Node.js dependencies
+npm install
+
+:: Install Composer dependencies
+composer install
+
+:: Copy the example environment configuration file
+copy .env.example .env
+
+:: Generate a new application key
+php artisan key:generate
+
+:: Build frontend assets
+npm run build
+
+:: Install broadcasting dependencies
+php artisan install:broadcasting
+
+echo "Setup a database connection in the .env file and then run 'php artisan migrate'"
+
+endlocal
+@echo on