My need would be to figure out if I can do something like this (keeping in mind the answer of @jrtapsell described here):
- I would like to install Git directly on the server where I currently host the three versions of the app I am developing (this is a Linux server, where each version is a separate host from the other, so, for example,
/home/develop/public_html
contains the files of develop version the same way astesting
andproduction
) - I would like to eliminate, at this point, totally having to use something to execute SFTP upload of files already handled with Git
- Ideally, therefore, I would like each host to be part of the same Git repository, so I can automatically send the files to each one without needing to upload with SFTP
At this point I wonder: is it possible to work with such a workflow? And, above all, can each host be a portion of the same repository?
Thanks so much.
/home/develop/public_html
,home/testing/public_html
and/home/production/public_html
). Is it possible?/home/{develop|testing|production}/public_html
then you would have a single repository somewhere outside of these three, and something that checks out a given branch and copies it to/home/{develop|testing|production}/public_html
periodically or on demand (with some continuous integration software you can even have this triggered by a commit to the branch, or you can do it yourself with git hooks on the server)).