0
  • I am using Eclispe IDE ;
  • We are using Git (Bonobo Git) on Windows server ;
  • The global render of our project is on a distant DEV server.

Every push to master branch on the git server, we would like to upload the updated files through SFTP on the DEV server.

How can I setup an SFTP on local and upload only when I push to the master branch?

Should we do it this way:

Local → [COMMIT & PUSH] → GIT server → [SFTP] → DEV server.

Or this way:

Local → [COMMIT & PUSH] → GIT server.

If push:

Local →           [SFTP]          → DEV server.

Community
  • 1
  • 1
Alexis Philip
  • 517
  • 2
  • 5
  • 23

1 Answers1

0

Since you are using Eclipse IDE, you could set up an SSH connection to your DEV server. Eclispe has built-in SSH connections. You could then set up the SFTP port and upload your work by SFTP everytime you hit save.

Then, you could commit and push and your work will already be on the server.