Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how deploy my sites with a GITLAB

I would like to know if there's possibility of deployment (Website) on a prod server with GIT?

Let me explain:

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?

Thank you in advance,

like image 362
Madridista Avatar asked Mar 25 '13 12:03

Madridista


People also ask

Does GitLab offer hosting?

GitLab.com offers simple free hosting for its own platform but that's primarily for open-source projects with limited storage requirements.

Can GitLab render HTML?

You can use HTML along with CSS and Javascript. It works on any Gitlab instance (Gitlab.com or Frama.io for example)


1 Answers

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.

See an example of a Gitlab webhook at "How to setup Gitlab with post-receive hook?".

Note: that webhook doesn't have to be in php: you can see more details and a different example in "Jenkins Gitlab Hook Plugin".

like image 121
VonC Avatar answered Oct 06 '22 23:10

VonC