Questions tagged [laravel-sail]
319 questions
0
votes
1 answer
Laravel Sail work migrate or contact with database
I run larvae 8 sail he work fine
my file content is docker-compose.yml
# For more information: https://laravel.com/docs/sail
version: '3'
services:
rami.dev:
build:
context: ./vendor/laravel/sail/runtimes/8.0
…

xpredo
- 1,282
- 17
- 27
0
votes
1 answer
Web and CLI mysql won't connect at the same time
I have setup my Laravel application using Laravel Sail (Docker based). Everything's working fine except the MySQL. MySQL server is behaving differently for web (local.mysite.com:8080) and for CLI (ex: php artisan migrate).
Configruation (1)
If I use…

arxoft
- 1,385
- 3
- 17
- 34
0
votes
2 answers
Laravel sail failed to start
I am trying to start laravel sail on Mac M1. I was able to resolve mysql version issue. Now when I run .vendor/bin/sail up command it get stuck at [4/12] RUN apt-get update && apt-get install -y gnupg gosu curl. These are last commands before the…

HumAiz Shahid
- 1
- 1
- 1
0
votes
1 answer
Laravel / Docker / Sail project stored on github: unsuccesful at cloning to a different machine
I created a project on my desktop with laravel and sail / docker. Been working on it for some time. I posted my project files to my github repository. I should have used the docker repository, I realize, but I did not set that up before I left. …

Robert Bryan Davis
- 183
- 2
- 12
0
votes
1 answer
Laravel Dusk ERR_CONNECTION_REFUSED visiting localhost
I have 3 Vuejs SPAs which use the same Laravel API setup using Sail/Selenium/Docker. I want to test each SPA from the API using Dusk but whenever I try to visit localhost with the port (http://localhost:9007) I get the following…

Tyler
- 3,713
- 6
- 37
- 63
0
votes
2 answers
Setting the correct database host in environment configuration
I'm trying out Laravel Sail for the first time and it's been a really bumpy road, likely through no fault of the package. I'm having an issue with either being able to access my test site, or migrate the database.
To access the test site, I need my…

Chords
- 6,720
- 2
- 39
- 61
0
votes
1 answer
Laravel Sail use with HTTPS
I wanna test my Laravel Sail Docker project with HTTPS enabled. How can I achieve this?
I thought share made this possible, but that is not correct.
▶ sail share --subdomain=foobar
Thank you for using expose.
Local-URL: …

user1469734
- 851
- 14
- 50
- 81
0
votes
1 answer
After starting Laravel with ./vendor/bin/sail up how to connect to MySQL using Sequel Pro
I'm trying to connect to mysql on Docker.
I used ./vendor/bin/sail up to start Laravel.
The command docker container ls returns the followings:
ID 88df79d8937f
IMAGE mysql:8.0
COMMAND "docker-entrypoint.s…"
CREATED 38 minutes ago
STATUS Up 38…

shin
- 31,901
- 69
- 184
- 271
0
votes
1 answer
Laravel Sail Separate Testing Database
curl -s "https://laravel.build/example-app" | bash
I used above command to install laravel8 and sail up
It all works good.
However, I would like to have testing mysql as well.
mysql_test:
image: "mysql:8.0"
environment:
MYSQL_ROOT_PASSWORD:…

Mike
- 7
- 1
- 4
0
votes
2 answers
Laravel 'sail up' does not work on production server
I am not sure if I can use laravel sail in production. First question is, can I use laravel sail in production?
And if I can, how can I use laravel sail in production? I am trying to deploy a website using laravel sail. But when I try to execute…

Yeasir Arafat
- 1,425
- 1
- 13
- 28
0
votes
2 answers
ERROR: for mysql a bytes-like object is required, not 'str' using docker-compose and laravel sail
I’ve rebooted my system and then run all my containers using the vendor/bin/sail up command, the only one that failed to reload was MySQL. The error is the following :
ERROR: for mysql a bytes-like object is required, not 'str'
Traceback (most…

Ahmad Azizi
- 21
- 1
- 5
0
votes
1 answer
RedisException Connection refused on http://localhost:80/
I am trying to run an existing laravel project on my localhost. I cloned the project and I installed wsl2 and docker desktop on my windows 10 system. when I execute sail up command, all containers build well and I dont have any errors but in my…

NavidMan
- 25
- 7
0
votes
1 answer
Suddently can't access DO Spaces locally (Laravel)
I have a laravel site up and running. We have three copies currently working - local, staging and production.
Up until today all three of these were acccessing the same digitalocean spaces with no issue.
Today we are getting a timeout whenever a…

swift--help
- 637
- 5
- 15
0
votes
1 answer
How to run laravel dusk in headfull mode from Sail and see the browser running the tests
I am playing around with Laravel sail and dusk for BDD.
I have exactly followed Laravel sail documentation and I was able to run the tests in headless or headfull mode inside the sail container. But I want to see the test running by opening the…

Tekraj Shrestha
- 1,228
- 3
- 20
- 48
0
votes
2 answers
Laravel Sail: the input device is not a TTY
I'm using Laravel Envoy and GitLab CI/CD to deploy my application, when i try to run npm install using Sail i get the following error:
the input device is not a TTY
here's my envoy task:
@task('run_compile')
{{ logMessage("Running compile...")…

Pezhvak
- 9,633
- 7
- 29
- 39