-
-
Notifications
You must be signed in to change notification settings - Fork 57
Installation Steps (for production)
Kevin edited this page Nov 15, 2023
·
3 revisions
APP_ENV=production
APP_DEBUG=false
composer dump-autoload --optimize
or along install:
composer install --optimize-autoloader --no-dev
or during update:
composer update --optimize-autoloader
php artisan config:cache
php artisan route:cache
php artisan view:cache
php artisan optimize
7. (Optional) Compiling assets (docs)
npm run production
8. (Optional) Generate the encryption keys Laravel Passport needs (docs)
php artisan passport:keys
9. (Optional) Start Laravel task scheduler by adding the following Cron entry (docs)
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
10. ((Optional) Install, config and start the Supervisor (docs)
11. ((Optional) Create a symbolic link from public/storage to storage/app/public (docs)
php artisan storage:link
php artisan db:seed --class=PermissionTableSeeder
php artisan db:seed --class=CreateAdminUserSeeder