pocketarc / git-deploy-php

git-deploy-php is a simple php-based tool that deploys your Git repositories to FTP/SFTP servers, and keeps them updated automatically.
http://brunodebarros.github.io/git-deploy-php
292 stars 45 forks source link

set up deploy.ini #41

Closed ereallstaff closed 10 years ago

ereallstaff commented 10 years ago

Hello and thanks for your code!!

I have some difficulties setting up deploy.ini . From your file I have commented all but leaving option as normal.

skip = false user = "user" pass = "password" host = "host" port = 21 path = "/httpdocs/" passive = true

Obviously values are fakes. With "" or not I have same error by my terminal:

PHP Warning: array_merge(): Argument #2 is not an array in /var/www/git-deploy.php on line 627

I have just updated up to php 5.5 , probably is here the problem.

Thank you

pocketarc commented 10 years ago

Hey there, looking at it now.

ereallstaff commented 10 years ago

I will look at it with xdebug to find more about this. Thank you

pocketarc commented 10 years ago

Where's your section header? You should have something like:

[example]

skip = false
user = example
pass = password    
host = example.com
port = 21
path = /path/to/installation
passive = true

Notice the [example]. If you don't have a section header, there's your problem.

ereallstaff commented 10 years ago

I had commented it, because I thought was there the problem of invalidating deploy.ini. Now works. Sorry for hassling!

pocketarc commented 10 years ago

No problem, glad it's OK now.