Skip to content

Installation Steps (for production)

Kevin edited this page Sep 27, 2024 · 5 revisions

Installation Steps

1. Apply changes to .env file:

APP_ENV=production

APP_DEBUG=false

2. Make sure that you are optimizing Composer's class autoloader map (docs):

composer dump-autoload --optimize

or along install: composer install --optimize-autoloader --no-dev

or during update: composer update --optimize-autoloader

3. Optimizing Configuration Loading:

php artisan config:cache

4. Optimizing Route Loading

php artisan route:cache

5. Compile all of the application's Blade templates:

php artisan view:cache

6. Cache the framework bootstrap files:

php artisan optimize

7. (Optional) Create a symbolic link from public/storage to storage/app/public (docs)

php artisan storage:link

8. Run admin Seeder

php artisan db:seed --class=PermissionTableSeeder php artisan db:seed --class=CreateAdminUserSeeder

note, WebErpMesv2 requires the use of the php soap extension :

Linux :

sudo apt-get update

sudo apt-get install php-soap

sudo apt-get install php-ldap

sudo systemctl restart apache2

Window : Enable the SOAP extension in the php.ini file. Open this file and uncomment the following line (remove the semicolon ; at the beginning of the line)

;extension=soap

;extension=ldap


Laravel deployment docs


Source