Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Laravel Sail setup #109

Merged
merged 1 commit into from Dec 26, 2023
Merged

Update Laravel Sail setup #109

merged 1 commit into from Dec 26, 2023

Conversation

bobbyiliev
Copy link
Collaborator

Removing the legacy Dockerfile and build bash script as the Dockerfile is not really being used when you run Laravel sail.

To use Sail follow these steps:

Install the dependencies:

composer install

Copy over the .env.example file to .env:

cp .env.example .env

The database details in your .env file should be set to:

DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=wave
DB_USERNAME=sail
DB_PASSWORD=password

Then start sail:

bash ./vendor/bin/sail up -d

Run the migrations:

./vendor/bin/sail artisan migrate 
./vendor/bin/sail artisan db:seed
./vendor/bin/sail artisan storage:link

After that visit http://localhost via your browser.

@bobbyiliev bobbyiliev merged commit a77b084 into main Dec 26, 2023
1 check passed
@bobbyiliev bobbyiliev deleted the laravel-sail-updates branch December 26, 2023 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant