Solution for slow source of Ubuntu software or connection failed when installing sail in laravel

Time:2021-1-17

Modify laravel sail Ubuntu software source

Modification of documents
C: Users 2018977115 – PC your project name vendor lavaelsail runtimes 8.0
Next dockerfile
Add before run apt get update

RUN  sed -i [email protected]/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN  sed -i [email protected]/security.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list

RUN  apt-get clean

Then execute the following in Linux

After creating the project, you can navigate to the application directory and start laravel sail. Laravel sail provides a simple command line interface to interact with laravel’s default docker configuration

CD your project name

./vendor/bin/sail up

The first time you run the sailup command, the application container for sail is built on your computer. It may take a few minutes. Don’t worry, the subsequent attempt to start sail will be faster.

Once the docker container of the application is started, you can access the application in a web browser,
The website is:http://localhost/index.php

Recommended Today

How to Build a Cybersecurity Career

Original text:How to Build a Cybersecurity Career How to build the cause of network security Normative guidelines for building a successful career in the field of information security fromDaniel miesslerstayinformation safetyCreated / updated: December 17, 2019 I’ve been doing itinformation safety(now many people call it network security) it’s been about 20 years, and I’ve spent […]