Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Content files not updating with Visual Studio 2010 FTP Publish

We're using Subversion (via TortoiseSVN) and Visual Studio 2010 to deploy our website. We have a dedicated account where we do a SVN update, then a FTP publish to our live server. Unfortunately, sometimes when we publish, CSS and Javascript files that have changed don't get pushed. This isn't a caching issue, because we've checked the server and the files actually haven't changed. There's no failures in the publish process to indicate that the files didn't go. If we make a trivial change to them (adding a space, for instance), they'll publish just fine.

Any suggestions?

Edit: Some thoughts I had, but I'm not sure how to test: Could it be possible that if one person modifies a file but doesn't check it in (Timestamp A), and someone else does a publish (Timestamp B), that when the file is later checked in and updated on the server (Timestamp C), Visual Studio sees that B > A and ignores C, so it thinks it doesn't need updating?

like image 508
Bobson Avatar asked Dec 02 '11 15:12

Bobson


1 Answers

I have the exact same problem with VS2010 and .js files and FTP publish except I am using VSS.

Sometimes certain files do not get published after making a minor change.

What I have been doing is deleting them from the server prior to publishing. I tried adding or removing a newline at the end of each file and that seems to work and is much faster than deleting the files.

With the two prior solutions or workarounds a file could be missed.

Another (not very time efficient but possibly the best) solution is to select the publish option "Delete all existing files prior to publish" but this greatly increases my publish time from a few minutes to over thirty minutes.

Also, I am having this issue when I am the only one working on the project.

I know this isn't really an answer but its my first post here and I am not sure how to reply to a post.

EDIT: My workaround (hopefully a better solution is found) is to delete all .js files on the server. This increases my publish time a little but not as much as using the "Delete all existing files prior to publish" option.

like image 126
Soenhay Avatar answered Nov 15 '22 03:11

Soenhay