如何使用GITLAB部署我的网站 [英] how deploy my sites with a GITLAB
问题描述
我想知道是否可以在具有GIT的产品服务器上部署(网站)?
I would like to know if there's possibility of deployment (Website) on a prod server with GIT?
让我解释一下:
我有一个在本地工作的团队,它与GIT一起工作,我们将在完成开发后将其部署在服务器PREPROD上,第二次在PROD服务器上进行部署吗?
I have a team who work locally, it working with GIT, we would after completing the development, deploy on a server PREPROD and in a second time, Deploy on PROD server?
谢谢,
推荐答案
使用gitlab,您需要使用 webhook (与与GitHub 相同)
You would need, with gitlab, to use a webhook (same idea as with GitHub), in order to trigger a git pull from your prod environment.
注意:webhook不必在php中:您可以在 Jenkins Gitlab挂钩插件。
Note: that webhook doesn't have to be in php: you can see more details and a different example in "Jenkins Gitlab Hook Plugin".
这篇关于如何使用GITLAB部署我的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!