by Devin Yang
(This article was automatically translated.)

Published - 6 years ago ( Updated - 6 years ago )

This article is the application teaching of D-Laravel, how to directly execute php artisan in the container on the host side.
After customizing the alias, it can be directly in the project folder on the host side,
Directly execute the php artisan in the contianer. alias a="../../artisan.sh"
So, for example, there is a blog Project in the sites folder
cd sites/blog
We can execute php artisan directly with alias a
a make:controller MyBlogController
a --version

Alias ​​a is equal to php artisan.

We can change another name, not necessarily called a.
Please remember to update to the latest version of D-Laravel, or directly download the bash of artisan.sh to the D-Laravel folder.

https://github.com/DevinY/dlaravel/blob/master/artisan.sh

Both old and new versions of D-Laravel can be used, after downloading to the D-Laravel directory, you can.
Then, create your favorite alias.

Tags: dlaravel

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


dlaravel

How to start supervisor on D-Laravel

Since queue workers are a long-running program, we need a program manager supervisor to monitor whether the process on the Linux system is running continuously. For example, when the queue:work operation fails, the queue:work process can be automatically restarted. Fortunately, D-Laravel has a built-in supervisor, so you don't need to install it yourself to use it. This article briefly introduces how we start the supervisor in the container.

dlaravel

D-Laravel specific service restart

Normally, we use ./console restart to rebuild and execute contaiener. Sometimes, we have multiple services and don't want to restart all services at once, At this time, you can use ./console restart [servce name] to restart a specific service..

docker,dlaravel

D-Laravel 1.5.5 Change Notes

D-Laravel's fpm image was rebuilt using the official dockerfile of docker php before php 7.2.1. And so I can specify that the default owner of fpm is dlaravel, --with-fpm-user=USER Set the user for php-fpm to run as. (default: nobody) --with-fpm-group=GRP Set the group for php-fpm to run as.