Skip to content

A self-hosted media server and file management system

614 B
Raw Blame
#!/bin/bash

# Exit immediately if a command exits with a non-zero status
set -e

git pull

echo "Installing Node.js dependencies"
npm i

echo "Installing Composer (PHP) dependencies"
composer install

echo "Setup environment variables"
cp .env.example .env

echo "Setup Laravel app key"
php artisan key:generate

echo "Setup Reverb app keys"
php artisan reverb:generate

echo "Build Frontend"
npm run build

echo "Setup a database connection in the .env file and then run 'php artisan migrate'"
echo "Finally run 'npm run vite:php' to start the queue and websocket servers in addition to your web server (nginx)"