Laravel Deployment: Setup environment

Our Laravel app will be cloned from source control: Then create the .env file: nano .env Install composer dependencies: If your run into the following error: SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes, update AppServiceProvider file: Setup Queue connections Setup supervisor: Configure supervisor for… Continue reading Laravel Deployment: Setup environment

Laravel Deployment: Setup dependencies

Install NGINX through apt: Install php dependencies Update php.ini properties: Setup MariaDB We need to install mariaDB server, create a dedicated database and user Secure the setup: Use mysql cli to create database schema and user: Create databse: Create user and grant access to database: Grant privileges: Setup composer