khs1994-docker / lnmp

:computer: :whale: :elephant: :dolphin: :penguin: :rocket: Start Docker LNMP(LEMP) In less than 2 minutes Powered by Docker Compose. 让 PHP 开发者快速(一键)搭建基于容器技术(Docker、Kubernetes)的开发、测试、生产(CI/CD by Drone)环境.
https://docs.lnmp.khs1994.com
Apache License 2.0
659 stars 133 forks source link

What if git updates ignore changes after custom configuration #605

Closed lichnow closed 5 years ago

lichnow commented 5 years ago
5. 建议通过 git 管理 ./config/nginx.my 文件夹,我们以后就在 nginx.my 文件夹内新增 NGINX 子配置文件(请参照 nginx 文件中的示例配置),HTTPD 同理

对于这段话有点难理解,通过git管理,是指直接在.gitignore中添加自定义的配置文件吗?还是怎么做?下次pull下来代码变更如何忽略?

khs1994 commented 5 years ago

用户自己在 config 文件夹新增的文件夹默认都被 .gitignore 排除了,所以每次更新本项目,不会对你的自定义配置文件有任何影响。

pcit-ce[bot] commented 5 years ago
Source
用户自己在 `config` 文件夹新增的文件夹默认都被 .gitignore 排除了,所以每次更新本项目,不会对你的自定义配置文件有任何影响。


Translate By default, the new folder in the' config' folder added by the user is excluded by. git _ ignore, so every time you update this project, does not have any effect on your custom profile.

Tencent AI Analytic Result :smile:

lichnow commented 5 years ago

@khs1994 也就是建议通过 git 管理 ./config/nginx.my 文件夹这句话我根本不需要管对吗?如果是这样的情况,把用户自己在 config 文件夹新增的文件夹默认都被 .gitignore 排除了,所以每次更新本项目,不会对你的自定义配置文件有任何影响。这句话加进文档里比较好^V^

khs1994 commented 5 years ago

文档的意思是你可以在 nginx.my 中通过 git init 在此目录中初始化一个 git 仓库,通过 git 管理配置文件。这两个 git 相互独立。

这算是一种备份配置文件的方式。

pcit-ce[bot] commented 5 years ago
Source
文档的意思是你可以在 `nginx.my` 中通过 `git init` 在此目录中初始化一个 git 仓库,通过 git 管理配置文件。这两个 git 相互独立。 这算是一种备份配置文件的方式。


Translate Documentation means that you can initialize a git repository in this directory in 'nginx.my' with 'gitinit', manage configuration files through git. The two gits are independent of each other. This is a way of backing up configuration files.

Tencent AI Analytic Result :smile:

lichnow commented 5 years ago

@khs1994 额,大神,你得写清楚啊,现在明白了,这文档太晦涩了,哈哈,还有一个问题,nginx启动了,如果启动httpd也就是apache,那么nginx可以直接代理php-fpm也可以选择代理httpd来运行php了吗?也就是php-fpm和httpd两个不同的容器可以共存,按需使用了?

khs1994 commented 5 years ago

nginx 代理 httpd?没考虑到 nginx 和 httpd 同时启动的情况。nginx 和 httpd 监听的端口一样,你如果这样做的话,先在 .env 文件中把端口修改一下

pcit-ce[bot] commented 5 years ago
Source
nginx 代理 httpd?没考虑到 nginx 和 httpd 同时启动的情况。nginx 和 httpd 监听的端口一样,你如果这样做的话,先在 .env 文件中把端口修改一下


Translate Nginx proxy httpd? The fact that nginx and httpd are started simultaneously is not taken into account. Nginx is the same port that httpd listens on, and if you do, modify the port in the.env file first

Tencent AI Analytic Result :smile:

lichnow commented 5 years ago

@khs1994 ok,明白了,还有一些关于环境变量的问题,等等重启一个issue

pcit-ce[bot] commented 5 years ago
Source
@khs1994 ok,明白了,还有一些关于环境变量的问题,等等重启一个issue


Translate @ khs1994ok, got it, some questions about environment variables, etc. restart an issue

Tencent AI Analytic Result :+1:

khs1994 commented 5 years ago

文档有哪些不理解,可以提出来。

pcit-ce[bot] commented 5 years ago
Source
文档有哪些不理解,可以提出来。


Translate What does the document do not understand, you can put forward.

Tencent AI Analytic Result :-1: