-
Notifications
You must be signed in to change notification settings - Fork 0
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...
- Install composer dependencies with:
composer install
- Install any node dependencies with:
npm install
-
Copy the .env.example to .env and complete any necessary fields. May want to consult original .env for this.
-
Generate encryption key with:
php artisan key:generate
- Migrate the database with:
php artisan migrate
-
Ensure
storage
andbootstrap/cache
directories are writable by the web server (e.g. www-data) -
If using
sqlite
for database, ensure 'database' directory is writable by the web server (e.g. www-data) -
Build package files with:
npm run build