F
F
firekod2018-12-04 11:26:03
git
firekod, 2018-12-04 11:26:03

How to organize a (simple) automatic deployment of a project from a Git repository?

There is a PHP project (not a website, no dependencies) in a repository on Bitbucket.
It is required that when committing to the production branch, all changes are uploaded to the servers.
No other action is required, just automatically keep the files up to date on the server.
There are several servers (there are many folders with the project on each), so I would like to see the configuration of this whole thing in one or more files.
The structure looks something like this:
Server01
/home/folder01
/home/folder02
/home/folder03
Server02
/home/folder01
/home/folder02
/home/folder03
All folders are filled with the same thing (production branch). Each folder has its own settings file, it must remain unchanged.
What is the easiest and most convenient deployment option for this case?
Heard about Bitbucket Pipelines, but I don't use Docker.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2018-12-04
@firekod

Heard about Bitbucket Pipelines, but I don't use Docker.

Doesn't matter - only your pipeline will run in docker. The pipeline itself is a regular shell-script. What you describe is what you will do.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question