Skip to content
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

Closed
astroanu opened this issue Nov 28, 2014 · 9 comments
Closed

Creates empty files on server #48

astroanu opened this issue Nov 28, 2014 · 9 comments

Comments

@astroanu
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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. 💭

@pocketarc
Copy link
Owner

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
Copy link
Owner

Have you been able to look into this?

@astroanu
Copy link
Author

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

@pocketarc
Copy link
Owner

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

@astroanu
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants