Publish to local folders - a hint if you use multiple PCs.
Posted: Sun Nov 07, 2021 5:04 pm
Baclkground:
I have a desktop machine and a laptop. I tend to publish to a local (on my internal network) web server - my Synology box. To do this, I have a network drive (W: for Web) and publish to a local folder (W:\newpennine as an example). Once there, I can test it out and when I am happy, I use Filezilla to copy it to my host (LCN). This works well for me.
My source file is on a dropbox type folder which I can access from my laptop and my desktop as they are both kept in sync. I have used the SUBST command so that the files appear to come from the same drive (in my case X:). Once again, this works well for me.
On my laptop, I can only publish to a local (C: drive) because I am generally not at home when I am playing around. This causes an issue because the publish folder is stored inside the WBS file. So, wheh I use my laptop after having used my desktop, because my latop doesn't have a W: network drive, the publish folder is then chosen (at random, it appears) by WWB. If I don't check, it could overwrite something I don't intend it to do.
Solution.
I love the SUBST command - go and look it up.
On my laptop, I have a J: drive which points to a local publish folder on my C: drive.
The command is: SUBST J: "C:\Users\alans\Documents\temp web sites"
On my desktop, I have the command: SUBST J: W:\
So, inside WWB, I have to pubish to J:\newpennine. As long as I have a 'newpennine' folder underneath my J: drive, it all works nicely and I don't have to check before I pubish that it's going to somewhere I didn't intend it to.
Now, this is something you may never need, but if you do, I can confirm this works nicely.
I have a desktop machine and a laptop. I tend to publish to a local (on my internal network) web server - my Synology box. To do this, I have a network drive (W: for Web) and publish to a local folder (W:\newpennine as an example). Once there, I can test it out and when I am happy, I use Filezilla to copy it to my host (LCN). This works well for me.
My source file is on a dropbox type folder which I can access from my laptop and my desktop as they are both kept in sync. I have used the SUBST command so that the files appear to come from the same drive (in my case X:). Once again, this works well for me.
On my laptop, I can only publish to a local (C: drive) because I am generally not at home when I am playing around. This causes an issue because the publish folder is stored inside the WBS file. So, wheh I use my laptop after having used my desktop, because my latop doesn't have a W: network drive, the publish folder is then chosen (at random, it appears) by WWB. If I don't check, it could overwrite something I don't intend it to do.
Solution.
I love the SUBST command - go and look it up.
On my laptop, I have a J: drive which points to a local publish folder on my C: drive.
The command is: SUBST J: "C:\Users\alans\Documents\temp web sites"
On my desktop, I have the command: SUBST J: W:\
So, inside WWB, I have to pubish to J:\newpennine. As long as I have a 'newpennine' folder underneath my J: drive, it all works nicely and I don't have to check before I pubish that it's going to somewhere I didn't intend it to.
Now, this is something you may never need, but if you do, I can confirm this works nicely.