P
P
Pavel2016-06-21 12:13:55
git
Pavel, 2016-06-21 12:13:55

How to auto-upload files from server to server?

There is a test server, there is a production.
On the test server, there is gulp, which loads files from the repository, minifies, makes all sorts of dry things and puts it in / var / www.
If everything is ok and everything works, you need to send all the files (excluding the sourcemap, but this is not critical) to the production.
What is the easiest way to organize "overflow" of files? I tried to set up a gallp-task so that it uploads from a folder to a new repository, it didn’t work out. Are there other ways?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2016-06-21
@plin2s

rsync?

D
Dmitry Evgrafovich, 2016-06-21
@Tantacula

You can consider this option: there are webhooks on bitbucket, when you push new changes to the repository, bitbucket pulls the specified address from your server, and you can hang it up there so that when you access this address, the task to download a new commit automatically starts, rebuild the project, etc. whatever your heart desires.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question