Skip to content

Laravel: Setting up additional development environments

Ibi Keller edited this page Oct 29, 2024 · 6 revisions

If setting up an addition development environment (e.g. on a new computer)... after cloning the git repo...

  1. Install composer dependencies with:

composer install

  1. Install any node dependencies with:

npm install

  1. Copy the .env.example to .env and complete any necessary fields. May want to consult original .env for this.

  2. Generate encryption key with:

php artisan key:generate

  1. Migrate the database with:

php artisan migrate

  1. Ensure storage and bootstrap/cache directories are writable by the web server (e.g. www-data)

  2. If using sqlite for database, ensure 'database' directory is writable by the web server (e.g. www-data)

  3. Build package files with:

npm run build

Clone this wiki locally