Skip to content

nicolasazrak/git-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

git-deploy

It's a simple way to upload files from git to php shared hosting without access to git or shell, using github post hooks. Main difference between other similar proyects is that this script makes a backup of the previous folder insted of updating modified files.

Instalation

  • First, upload deploy.php and desploy_config.php to your server.
  • Then, go to you repo settings -> WebHook & Services -> Add a webHook -> Use the url where deploy.php is

Config


$config = array(
	"repo" => array(
			"user" => "github_user",
			"pass" => "github_password",
			"branch" => "master",
			"url" => "https://github.com/twbs/bootstrap/archive/"
		),
	"path" => array(
			"old" => "old/",
			"source" => "dist/",
			"destination" => "bootstrap/",
			"temp" => "temp_deploy/"
		),
	"emails" => array()
);

Limitations

  • Can only deploy to a specific folder
  • All paths in config must end with /

About

Simple script to deploy from github/bitbucket to shared hosting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages