Publish Times

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

Publish Times

Postby MarcF » April 26th, 2014, 3:47 pm

How can I publish a small number of files? I work on some very large websites and having to publish the entire project every time I make a single line change is VERY frustrating!

Marc
MarcF
 
Posts: 3
Joined: April 14th, 2014, 8:08 am

Re: Publish Times

Postby Miloslav Beno » April 27th, 2014, 3:48 pm

Hi,

Publish is publishing all files just on first run, then it's only publishing changed files or missing files on the remote system. You can make publish faster by checking "Skip missing files check".

You can see how many files got actually published on the end of publish in Output pane.
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Publish Times

Postby nbogol » May 7th, 2014, 2:39 pm

There is workaround for publishing problem.
If your destination server is Linux/Unix based you can
change permission to the folder you do not want to publish.
For example:
chown apache dir1
chmod 744 dir1

Then only apache http can access files under dir1 directory. For this to work you need to login (ftp) with different then apache account.
nbogol
 
Posts: 3
Joined: May 7th, 2014, 1:12 pm

Re: Publish Times

Postby EraYaN » June 5th, 2014, 11:11 am

When I first installed the product as a trail when I hit the "play" button it would just publish the changed files.
something like:
>Publish succeeded. (copied 2 files)

Now every time it says
>Publish succeeded. (copied 121 files)

So it is no longer aware of the changes. So it ALWAYS publishes every file. Which is a shame when you're on a 0.5 MBit line. I read somewhere that you are working on this issue. Any updates?
EraYaN
 
Posts: 9
Joined: June 5th, 2014, 11:06 am

Re: Publish Times

Postby Miloslav Beno » June 5th, 2014, 11:22 am

Hi,

Thanks for giving us know. When you check the publish profile is there Delete all existing files?

It certainly should not copy all files. What version do you use? so I can check what might have changed.

Thanks,
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Publish Times

Postby EraYaN » June 8th, 2014, 1:29 pm

I use version: 1.13.5279.2013

It's a publish using FTP (passive, explicit TLS or SSL). FTP account root is the site root so "Site path" is "/". Only skip missing files check is checked. On my main PC it is now fixed (by installing the 1.13) so I did that here too, but to no avail. Behaviour has not changed. (I was using the 1.12.XXXX version that was on the website as "stable" a week ago.)
Is there some cache where the plugin keeps track of changes?

These are my other extensions:
http://erayan.com/jing/2014-06-08_1521.png
And below the fold "Workflow manager activities". VS version is ultimate.
Also Visual Micro addin in installed.
EraYaN
 
Posts: 9
Joined: June 5th, 2014, 11:06 am

Re: Publish Times

Postby Miloslav Beno » June 9th, 2014, 1:54 pm

That is quite strange. This issue shouldn't have anything to do with other extensions.

PHP Tools keep track of publish times in Properties\PublishProfiles\PROFILE_NAME.phppub.user

So it has to think that publish date differs from the last change date of the file.

Could you please check what's inside this file? That might help determine why it thinks it should publish it.

Thanks!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Publish Times

Postby EraYaN » June 9th, 2014, 4:10 pm

The file is filled with entries like this:

<File Include="bp-content/images/icons/stop.png">
<publishTime>10/21/2013 13:10:55</publishTime>
</File>
I guess this time is UTC/GMT.

The file in question shows: (Both GMT+2, daylight savings time in the Netherlands)
Created: ‎maandag ‎21 ‎oktober ‎2013, ‏‎18:41:54
Modified: ‎maandag ‎21 ‎oktober ‎2013, ‏‎15:10:55
EraYaN
 
Posts: 9
Joined: June 5th, 2014, 11:06 am

Re: Publish Times

Postby Miloslav Beno » June 11th, 2014, 2:50 pm

Hi,

The modified time then match the time in publish profile. So file shouldn't need to published. I've modified current development version of php tools to give us more information about what's happening during publish. I'll send you the link through email so if you want you can try it out.

Thanks!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Publish Times

Postby EraYaN » June 11th, 2014, 3:50 pm

I tried the release (with the x) and now it works properly.
All files "IsWithinOneSecond : true => no need to publish"
I will test it again on my parents' slow connection (where the problem occurred the last time), this Friday or Saturday.
EraYaN
 
Posts: 9
Joined: June 5th, 2014, 11:06 am

Next

Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 10 guests

cron

User Control Panel

Login

Who is online

In total there are 10 users online :: 0 registered, 0 hidden and 10 guests (based on users active over the past 5 minutes)
Most users ever online was 511 on April 27th, 2024, 10:11 pm

Users browsing this forum: No registered users and 10 guests