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
291 stars 45 forks source link

Creates empty files on server #48

Closed astroanu closed 9 years ago

astroanu commented 9 years ago

I ran the script after configuring the ini files. It made empty files on the server. All the files were just empty. Am i doing anything wrong ?

pocketarc commented 9 years ago

I don't know; is it possible that you've got some weird permissions issue that's allowing FTP to create files but not to write to them? That'd explain the empty files.

What is your config file like (replace any private info with *\ or whatever)?

astroanu commented 9 years ago

Hmm. With the same FTP credentials i can perform successful uploads and deletes using filezilla. This is a head scratcher.

This is my ini file.

[staging]

branch = master
skip = false
user = staging_****.com
pass = ****
host = ***.***.com
port = 21
path = /
passive = true
ignore_files[] = app/config/app.php
ignore_files[] = app/config/database.php
pocketarc commented 9 years ago

Here's another question then... is "git" in your environment's PATH? If you type git in the command line, do you get anything? If you're on Windows, it's likely that that needs to be configured manually (I remember having to do that for git-deploy back when I was still on Windows).

astroanu commented 9 years ago

No, im on Ubuntu 14. Git is accessible in the cli in every path. When i run git-deploy it shows all the files on the terminal when they are being transferred to the server. But on the server the files are empty. The files have chmod 777 (i changed this to 777 for testing purpose). Maybe i should ask my hosting people about this. :thought_balloon:

pocketarc commented 9 years ago

I'm not sure what could be happening, nothing seems out of the ordinary at all. If you've got any experience with PHP, you might be able to die() before a file is uploaded, and just dump the file's content to check if the problem is with transferring the contents or with getting the contents from your computer.

pocketarc commented 9 years ago

Have you been able to look into this?

astroanu commented 9 years ago

No not really. The project was on a tight deadline so i had to use conventional FTP uploads :(

pocketarc commented 9 years ago

That's a shame. Have you tried using git-deploy for any other projects since?

astroanu commented 9 years ago

unfortunately no. i implemented a gulp task to upload files using vinyl-ftp. which is working fine.