by Devin Yang
(This article was automatically translated.)

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

I bought the Raspberry Pi this time because I thought it was very fun. In addition, the Mac environment in my home is too new to compile Line Simple Beacon normally.
Through the Raspberry Pi, it is easy to use, and there will be no problems in the environment. Of course, there are more applications.

But as the author of D-Laravel, of course I have to come and try to see if D-Laravel can be executed on the Raspberry Pi.
After I manually adjusted and rebuilt the Arm image,
It is basically executable, and there are pictures and facts. It is recommended that people who are familiar with Docker and Linux try it .

At present, I have pushed the deviny/fpm:7.2.3-arm image. If you are a D-Laravel user, you can omit the rebuild fpm step and directly adjust the php image in docker-compose.yml.

This article will not have a complete installation introduction. After all, such an application may be a bit unpopular, but it is just an experience sharing, which is basically feasible.
Since the default user id and group id of pi are also 1000, using this image does not require the action of ./console chowner on D-Laravel to execute Laravel normally.
There will be no problem of fpm not being able to write to the folder.

The following are some of the situations I executed on the Raspberry Pi, D-Laravel bash. c is an alias for ./console.
1. There will be no problem with c down and c up or c restart.
console up, console down and console restart
2. The three containers are all up normally (you need to build the image yourself)
3. In the figure below, you can see that the execution of a migrate successfully creates a data table in the database, and the a --version command displays,
Currently the latest version of Laravel 5.6.15.
run d-laravel on raspberry pi 3
In the above screen, use the intranet Wifi connection, turn it on, and initially feel that the response speed is quite fast.

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 set the external network IP to the Project on D-Laravel?

This video introduces how we assign Public Ip (public IP) to a specific Project in the D-Laravel environment. Whether it is the setting of the external production environment or the demo of your own project on the intranet, you can refer to the setting method of this video. In the video, although I used the external network IP of PPPoE dial-up to illustrate, we can also use the local network IP on our own computer if we change it. In this way, colleagues can connect to our D-Laravel Project.

dlaravel

D-Laravel's sublime plug-in can be installed by Package Control.

Mac or Linux users can now install the D-Laravel alias package from Sublime3's package control. Through D-Laravel alias, we can execute artisan and composer commands in the container in an easier way. In the docker environment, do you want to use composer to install the package? You don’t need to enter the container, or set the ce alias of composer, and you can execute it directly in sublime.

dlaravel

How to directly execute the php artisan of different projects in the container on the host.

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, you can directly execute php artisan in the contianer in the project folder on the host side. alias a="../../artisan.sh"