Easily deploy to your server via SSH and GIT with a single BASH file
-
Have 2 git repositories - one for your code and a seperate one for deploying to your server in directories named
main_repo_dir
anddeployment_repo_dir
respectively, sharing a common parent folderDirectory structure:
-- . -- main_repo_dir -- deployment_repo_dir -- easy_git_and_ssh_based_deployer.sh
-
Setup your target server to be able to pull the deployment repo
-
Kindly skim through the
easy_git_and_ssh_based_deployer.sh
file - it can be further customized to suit your specific project