by Devin Yang
(This article was automatically translated.)

Published - 7 years ago ( Updated - 2 years ago )

At present, this site is set up on the Nas of my own home, and it is operating through the Docker container environment.
He uses my own simple container management environment php
https://github.com/DevinY/phpenv

Below the grid line is old information



I can't stand Bulehost's slow speed, and I have pulled DNS back to be directly managed by networksolutions.
Adjust the DNS setting TTL to two hours, maybe it will be converted to other places..

Here are a few things that I personally don't like about Bulehost:
1. The host should be in the United States, and the speed is too slow.
Two, no http/2.
3. The time zone of mysql cannot be adjusted.

So decided to move to Google Cloud Platform, to GCP,
After 48 hours, all DNS cache should be gone, I think DNS resolution has been moved to GCE (Google Compute Engine).

The website you see so far, 3C Tech Center, uses the D-Laravel docker-compose environment to operate. Because of the chat room function, redis container is added.
Since there is a $300 trial, let's watch it first to see how much it will cost for a month.

This is the first time for me to run D-Laravel for development on MacOS on GCE. I have the opportunity to write another article on how to set up D-Laravel on GCE.

Benefits of using D-Laravel on GCE:
1. The development environment of my local machine is exactly the same, and the function of this machine can basically be operated remotely.
2. You can update to the latest version of PHP at any time, and you can test whether there is any problem in the development environment on the local MacOS.
3. It is necessary to reinstall related services such as PHP or redis without changing the environment. After docker-compose is set, it can be used.
The new version of php can be updated at any time to facilitate transfer to different platforms.

Well, it is actually the benefit of Docker, but D-Laravel provides a basic architecture and simple bash commands..?

Currently on GCE, the archive speed of my post is super fast, cmd+s archives immediately (I have a hotkey archive in the background),
It takes more than ten seconds for me to complete the archive on Bluehost. Now after arriving at Google Cloud Platform,
Zero waiting, the screen flashes and the archive is completed. It is a refreshing feel to use it..?

docker-compose ps

Tags: config

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


linux,config

Ubuntu ppp0 renamed eth0

Not sure who will use it, but I encountered it myself, because my home is a floating IP. A software I installed cannot detect that the ppp0 network card is an external network, so changing the name can trick him into successfully installing it.

config,vim

Chinese environment of Vim on Ubuntu

If Vim is set to Chinese environment, but Ubuntu is not set to zh_TW.UTF-8 during installation, how to install this environment?

ssh,security,config

About SSH_USER_AUTH

After OpenSSH 7.6, you can add the ExposeAuhtInfo yes parameter in the sshd_config configuration file, restart sshd, and then log in, there will be an environment variable $SSH_USER_AUTH which can be written into a temporary file in tmp, which contains the login public key