Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
When I export and upload Pages files with changes, what is the best practice for dealing with the existing files in the root directory (public_html)? Is it recommended to just ftp and replace with newer files, or best to erase the current corresponding contents before uploading?
Thanks
Offline
Might depend on what your FTP program is set for. Mine is set to overwrite.
I simply just upload the new export (or often just the relevant files)
If you delete the existing content that will take your site down, albeit briefly (assuming nothing interrupts the subsequent upload, like a power outage)
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Thanks. It sounds like overwriting with the latest export works ok.
I'm using FileZilla, set to "overwrite if newer". However, for some reason it does not overwrite some folders, so I manually deleted the previous and uploaded the new folders.
When uploading, it uploads a phplugins-sample folder. Do you delete the older phplugins folder, and rename the new one?
Offline
When uploading, it uploads a phplugins-sample folder. Do you delete the older phplugins folder, and rename the new one?
No. The reason for renaming phplugins-sample to phplugins is so that it won't get overwritten upon re-exporting. You don't want to overwrite your phplugins folder unless you've specifically changed something in it. And even then, just upload the changed files.
In fact, you don't even need to upload the phplugins-sample folder after you've changed the name of the original to phplugins. And if it's already on the server, it's safe to delete it.
I keep a separate folder on my computer called "phplugins and custom css" that's not part of any exports (originally copied from a Pages export). I make all my phplugins and custom css changes to those files and then upload them separately from any Pages uploads.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
If the phplugins has been overwritten, any recommendations on best way to get back in synch?
Will it work to just rename the latest phplugins-sample?
I have the CE4 Web Publishing Bundle installed and CE4 Stage
Offline
Will it work to just rename the latest phplugins-sample?
Only if you've not customized the phplugins.php file.
I suggest keeping a working copy of both your phplugins.php and custom.css files separate from your exported files. These should be the same as the files online.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Thanks Rod.
I have not customized the phplugins.php, so the newly exported phplugins.php should work.
But I will keep a working copy of this and the custom.css
Offline