-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creates empty files on server #48
Comments
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)? |
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.
|
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). |
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. 💭 |
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. |
Have you been able to look into this? |
No not really. The project was on a tight deadline so i had to use conventional FTP uploads :( |
That's a shame. Have you tried using git-deploy for any other projects since? |
unfortunately no. i implemented a gulp task to upload files using vinyl-ftp. which is working fine. |
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 ?
The text was updated successfully, but these errors were encountered: