Community @ The Turning Gate

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.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2015-05-06 10:22:56

jeffrey douglass
Member
Registered: 2015-04-28
Posts: 28

Best practice for re-uploading Pages folder content

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

#2 2015-05-06 11:02:30

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Best practice for re-uploading Pages folder content

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

#3 2015-05-06 11:32:22

jeffrey douglass
Member
Registered: 2015-04-28
Posts: 28

Re: Best practice for re-uploading Pages folder content

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

#4 2015-05-06 12:34:59

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Best practice for re-uploading Pages folder content

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

#5 2015-05-08 00:50:33

jeffrey douglass
Member
Registered: 2015-04-28
Posts: 28

Re: Best practice for re-uploading Pages folder content

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

#6 2015-05-08 02:45:40

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Best practice for re-uploading Pages folder content

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

#7 2015-05-08 04:58:58

jeffrey douglass
Member
Registered: 2015-04-28
Posts: 28

Re: Best practice for re-uploading Pages folder content

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

Board footer

Powered by FluxBB