by Devin Yang
(This article was automatically translated.)

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

How to upgrade the current D-Laravel.
If your current use environment is very smooth and you have not encountered any problems, you don't need to update it.

If you want to use the latest version, and bug fixes, etc., please read this article carefully,
In order to ensure a smooth upgrade, the following is the recommended way to upgrade D-Laravel.

Please confirm that your docker and docker-compose versions are the latest.
If you run D-Larvel in Production, it is best to use the same environment to test and then update.
Updating the docker version may also cause your current environment to fail to perform smoothly.

1. You can clone the latest version of D-Laravel, or download it from the release.
For example, here I cloned a dlaravel folder named tdlaravel.
git clone https://github.com/DevinY/dlaravel.git tdlaravel

2. Copy the old version of data (database directory) and sites (project directory) to the directory of tdlaravel (do not There are special service numbers such as - or _).
Please confirm that the old version of dlaravel has been disabled first.

3. Enter the tdlaravel directory and start it to see if it is normal.

Please note the database version used by the db service in docker-compose.yml.
For example: the images of mysql 5.7.19 and mysql 8.0.11 are very different.
You cannot directly use my.cnf from the old version of mysql 5.7.19 to mysql 8.0.11
In addition, the directory of data in the yml configuration file also needs to be changed, such as data8.
 db:
  image: mysql:8.0.11
  hostname: db
  ports:
    - "127.0.0.1:3306:3306"
  volumes:
    #- ./etc/mysql/my.cnf:/etc/mysql/my.cnf
    - ./data8:/var/lib/mysql
  environment:
   #- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD-secret}
   - MYSQL_ALLOW_EMPTY_PASSWORD="yes"
   -TZ=Asia/Taipei
  networks:
    - dlaravel_net

4. If it is normal after you update, you can disable tdlaravel first.
Change the existing dlaravel directory to dlaravel-old
Then change tdlaravel to dlaravel.
 

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


php,docker,dlaravel

A brief introduction to the phpenv container environment I built

I don't have time to shoot an introduction video, so I'll just grab some pictures and introduce the container environment deviny/phpenv I use. https://github.com/DevinY/phpenvphpenv can be regarded as an evolutionary version of my previous D-Laravel open source project, conceptually extending the use of many Dlaravel operation methods. The update of the container tends to be controlled by the user to build his own image, so I am not very good at changing the version number. In fact, the php version number of D-Laravel seems to have not been changed for a long time:p

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.

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.