Forum Moderators: coopster
The obvious risk with this is that if my dev site goes down all my clients lose their CMS, but I wonder if there are any other problems with this approach - maybe in terms of performance?
Are there any better options for keeping files up to date across several sites?
Thanks.
The way I handle this is that my CMS has a dedicated folder for shared files (and only shared files). All my own sites are on the same account/server so I can just do a symbolic link from the folder's of each website to the shared folder. For sites that use my CMS but are hosted on other servers all I need to do to provide an update is push the entire shared folder over to those other servers.
Basically it looks like a normal file folder, but instead points to a different file folder. For instance, "/root/web/bluewidgets/shared/" actually points to "/root/web/sharedstuff/". Thus to the file system and Apache whatever you place in "/root/web/sharedstuf/" can also be referenced via "/root/web/bluewidgets/shared/".
The result is that you could place the file "admin/cp.inc" in "/root/web/sharedstuff/" but call the file from your script "index.html" in "/root/web/bluewidgets/" via "shared/admin/cp.inc".
It is a seriously useful way to share files between websites on the same account. Windows does not have an equivalent function unfortunately.
man ln
:)