/listen

Primary LanguagePHP

Listen

Local setup

First you need to install the Composer dependencies. This is a bit messy.

  1. docker run -it -v "$(pwd):/app" php bash
  2. cd /app
  3. apt update
  4. apt install unzip wget
  5. wget https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer -O - -q | php -- --quiet
  6. mv composer.phar /usr/local/bin/composer
  7. composer install
  8. quit
  9. sudo chown -R $(id --user):$(id --group) vendor
  10. ./vendor/bin/sail up -d
  11. cp .env.example .env
  12. ./vendor/bin/sail php artisan key:generate
  13. App should be running at http://localhost

Prod setup

  1. Clone this repo
  2. Run ./run-prod.sh
  3. cd prod
  4. cp .env.example .env
  5. Set APP_KEY in prod/.env
  6. Run ./run-prod.sh

To get the latest changes, run:

  1. git pull
  2. ./run-prod.sh