Skip to content

NewEXE/ua-help

Repository files navigation

Deploying project on server

This project created with Laravel 9.5.1

  1. Clone git repository.
  2. Open terminal in destination path root.
  3. Install composer dependencies:
composer install
  1. Make copy of .env.example to .env file:
cp .env.example .env
  1. Set the key that Laravel will use when doing encryption:
php artisan key:generate
  1. Link your public storage folder:
php artisan storage:link
  1. Set up database credentials, replace next .env values:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
  1. Run the migrations:
php artisan migrate
  1. Run NPM build:
npm install
npm run prod
  1. Make production-optimize things:
php artisan view:cache

DO NOT run route:cache because routes contains dynamic calculations (LocaleManager::routePrefixFromRequest() in routes/web.php)!!!

Update dependencies

PHP

composer update -W

JS

npm audit fix