First you need to install the Composer dependencies. This is a bit messy.
docker run -it -v "$(pwd):/app" php bash
cd /app
apt update
apt install unzip wget
wget https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer -O - -q | php -- --quiet
mv composer.phar /usr/local/bin/composer
composer install
quit
sudo chown -R $(id --user):$(id --group) vendor
./vendor/bin/sail up -d
cp .env.example .env
./vendor/bin/sail php artisan key:generate
- App should be running at http://localhost
- Clone this repo
- Run
./run-prod.sh
cd prod
cp .env.example .env
- Set APP_KEY in
prod/.env
- Run
./run-prod.sh
To get the latest changes, run:
git pull
./run-prod.sh