by Devin Yang
(This article was automatically translated.)

Published - 8 years ago ( Updated - 8 years ago )

foreword

Since Google Chrome 63 will forcibly convert the domain name of *.dev to https, the domain name of the new version of D-Laravel will be changed to *.test.
This article explains how to update.

manual update

1. You need to manually remove the *.dev domain name in /etc/hosts in your computer, and you need root authority to modify /etc/hosts on the system.
You can also leave it alone, but some old *.dev domain names will remain in /etc/hosts.
You can modify it through vim, for example: sudo vi /etc/hosts to modify.

If you are a user of D-Laravel, when the entire computer only has the docker environment of D-Laravel , you can simply execute
./dlaravel uninstall
This will help you, remove all docker images, contianers and all *.dev settings on /etc/hosts.
Note, your computer has its own contianer of other projects, please do not execute this command.

2. After completion, you can execute git pull update in the Project folder of D-Laravel.
You may need to remove some configuration files generated under dlaravel/etc. It is recommended to directly install a new folder for testing.

3. Execute ./dlaravel to rebuild the domain name of *.test, according to the name of laravel projects in your dlaravel/sites folder.
 

new test install

If you are using an old version of D-Laravel, it is strongly recommended to clone a new one to test to see if it works normally.
For example the new folder is called dlaravelnew .
1.
git clone https://github.com/DevinY/dlaravel.git dlaravelnew

2. Copy the old version of data and sites/* (Laravel Project) to the new version of D-Laravel directory (dlaravelnew).
dlaravelnew/data (that is, Mysql data)
dlaravelnew/sites/ (the place where Laravel Project is placed)
3. Use normal as a template to copy out the docker-compose configuration file of the custom version.
cp docker-compose-normal.yml docker-compose-custom.yml
4. Force softlink to link docker-compose-custom.yml to docker-compose.yml
ln -vsf docker-compose-custom.yml docker-compose.yml
5. Please adjust and confirm whether the php version number and database version number used in docker-compose.yml in your old version of D-Laravel are the same as those in the new version.
If the difference between the old and new versions of the DB is too large, your db container may fail to open.
6. Execute ./dlaravel to recreate the domain name according to the name of the project folder in the sites.
7. ./console restart to test.
8. Under normal circumstances, you can use ./console info to check the domain names of all your projects:
./console info

 

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 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"

dlaravel

D-Laravel v1.5.0 is a new version.

1. Change the image generation method of fpm, optimize dockerfiles/fpm/php7.x/Dockerfiles, and make it easier to set and adjust extension packages. 2. Adjust docker-compose-build.yml, and in the Project directory of D-Laravel, You can quickly build your own image through ./console build. And many more changes....

dlaravel

Use docker in docker to build a D-Laravel test environment.

D-Laravel is an extremely easy-to-use and extremely flexible Laravel development environment. As long as you are a Mac user, even if you don’t know Docker, you can use it to create Laravel projects and develop them. Due to the newly added .env function When it comes to functions, those who are in a hurry push, but there is no complete test, and a bunch of new bugs are created. Therefore, this time, a new dlaravel_test, a bash testing tool, is added to run the test through docker in docker. Make sure that every release of D-Laravel can be a stable version.