P
P
pomaz_andrew2017-07-18 16:28:23
git
pomaz_andrew, 2017-07-18 16:28:23

How to deploy a web application from a Git repository if the Git server and the ftp server are different servers?

Good day everyone! There is a need to deploy a web application (Angular2) when pushing to a Git repository. As already said, Git server and ftp server are different. Alas, all articles about solving this problem assume that everything is on the same server. Can someone suggest an idea or a way how to automate deployment in case of different servers? Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuri Popov, 2017-07-18
@DjPhoeniX

Is it bare, or some kind of gitlab? The latter can do CI, including deploy with any script (in which you can also specify FTP addresses). If bare, then you need a post-receive hook, which will also pull some kind of script (it's more complicated here).

P
pomaz_andrew, 2017-07-20
@pomaz_andrew

Thank you all for your help. I found a way out not through Git, but by adding a Node module using the ftp-deploy class to the build script chain.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question