19
loading...
This website collects cookies to deliver better user experience
docker
group so that you are able to execute Docker with your regular user.bash
.curl -s https://laravel.build/laravel-dev-blog | bash
sudo
password in order to set the correct permissions on the application directories:Application ready! Build something amazing.
Sail scaffolding installed successfully.
Please provide your password so we can make some final adjustments to your application's permissions.
[sudo] password for erika:
Thank you! We hope you build something incredible. Dive in with: cd laravel-dev-blog && ./vendor/bin/sail up
cd laravel-dev-blog/
ls
artisan
script, located at the root of the application folder, is an important tool that you can use to generate boilerplate code, manipulate the database, run jobs and queues, among other things..
├── app/ # models, controllers, and app-specific logic
├── bootstrap/
├── config/ # configuration files
├── database/ # database-related classes and scripts
├── public/ # the document root for the application
├── resources/ # front end resources that aren't public: views, base CSS and JS
├── routes/ # where the application routes are defined
├── storage/ # file uploads, cache, and logs are stored here
├── tests/ #application tests
sail up
CTRL+C
.-d
as an argument to the previous command:sail up -d
http://localhost
. Open this URL on your browser and you'll see a page like this:Command | Description |
---|---|
sail up |
Brings the Docker environment up. |
sail down |
Brings the Docker environment down and remove associated containers, storage, and network. |
sail start |
Starts an environment that was previously stopped with sail stop . |
sail stop |
Stops an environment that is currently running, saving the state of containers and services. |
sail artisan |
Runs the artisan tool on the application container. |
sail php |
Runs a PHP script on the application container. |
u - ${USER}