Skip to content

mike-src/centos-laravel-initialize-sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 

Repository files navigation

Description

Simple bash script that inititalizes and sets correct permissions for a new project.

Instructions

  1. Create new laravel project:
git clone https://github.com/laravel/laravel.git
  1. Install laravel files:
composer install
  1. Run custom initialization script:
cd /var/www/your-project
bash ./initialize.sh
  1. Update your db connections parameters in .env

  2. Run php artisan migrate to migrate tables

Notes

If you get the following error when migrating:

SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table 'users' add unique 'users_email_unique'('email'))

You will need to update app/Providers/AppServiceProvider.php with the following:

use Illuminate\Support\Facades\Schema;

public function boot()
{
    Schema::defaultStringLength(191);
}

References

About

Simple bash script that sets correct permissions for a new project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy