Archive of UserLand's first discussion group, started October 5, 1998.
multiFTP - Rendering to multiple servers
Author: Philip Suh Posted: 2/22/1999; 11:08:41 AM Topic: multiFTP - Rendering to multiple servers Msg #: 3107 Prev/Next: 3106 / 3108 Rendering websites to multiple serversI had a project where I needed to render websites out to a staging server, and then to a live server. After playing with filewriters for awhile I decided that modifying the builtins.html scripts was the most direct and simple way to accomplish this.
Since people have asked me about this, I've packaged it up. suites.multiFTP is an installer that modifies builtins.html. You can download from:
http://www.filsa.net/downloads/suites.multiFTP.fttb
http://members.xoom.com/filsa/downloads/suites.multiFTP.fttb
What follows is the readme from suites.multiFTP. Enjoy.
Phil
This is the multiFTP suite.
Created by Philip Suh of filsa.net on January 14, 1999 at 1:33:20 PM.
[Why I Wrote It]
I wrote this to automate the process of installing multiFTP into Frontier.
[What It Does]
This suite modifies the standard HTML suite to allow multiFTP servers.
It also creates backups of the changed scripts, which are kept at user.multiFTP.backups. You can use the menu commands 'Show Backups' and 'Restore from Backup' to uninstall multiFTP.
[Dependencies]
It requires a version of the Frontier app at least version 5.1.4 or higher.
http://www.scripting.com/frontier5/
[How To Use It]
In the website that you want to render out to various servers, create an #ftpSites table. Inside #ftpSites, create subtables for each server. Inside those server subtables, create tables with similar information to your usual #ftpSite.
For example, #ftpSites.stage and #ftpSites.live, for your staging and live servers.
It might look something like this:
The use the commands in the multiFtp menu for rendering pages: 'Preview, Publish Page, and Publish Table'. You will be prompted for the site table name you want to use.
- #ftpSite
- folder
- method
- url
- #ftpSites
- live
- folder
- method
- url
- stage
- folder
- method
- url
If you want, you can call html.buildOnePage and html.ftpTable with a new parameter, siteTableName. siteTablename should be a string, the name of the subtable of ftpSites which you want to use. This allows you to render to different servers via a script.
[ Warning ]
This software has no warranty.
It works by modifying standard portions of the Frontier HTML renderer. Note that future changes to Frontier may render these scripts incompatible. Use this software at your own risk.
Really, be very careful. You could really screw yourself up, and you may curse me for it, but don't say I didn't warn ya.
Now that I've scare you all off, come back! It's been very stable for me and has worked without any problems. If you back up before you install, and you follow the directions here, you shouldn't have any problems.
Please read the version notes in multiFTP.suiteInfo.versionInfo
[ Notice: Purpose of this software ]
This software is very much alpha software, I have no intentions of cleaning it up and making it idiot-proof. I don't plan to take it to beta stage.
However, I hope it is used and that the features it offers will be rolled into some future version of Frontier. It's not perfect, I'm sure there are problems with the implementation, but I hope it will prompt discussion on what I think is a good feature.
Additionally, I hope that some sort of multi-server feature makes it into the next versions of Frontier.
Note that this implementation will break macros that search for a top level #ftpSite for info about the site's location. IMHO those macros should be changed to use adrPageTable^.ftpSite or adrPageTable^.adrSiteRootTable, as necessary.
[Discussion - Bug Reports]
Discuss this feature at: http://discuss.userland.com/msgReader$3107
Send bug reports to phil@filsa.net
[Copyright Statement]
suites.multiFtp was created for Userland Software, Inc. by Philip Suh
Copyright © 1999 by Userland Software.
scriptInstaller copyright 1998-1999 by Philip Suh.
There are responses to this message:
- Re: multiFTP - Rendering to multiple servers, Jim Roepcke, 2/22/1999; 11:33:26 AM
This page was archived on 6/13/2001; 4:48:02 PM.
© Copyright 1998-2001 UserLand Software, Inc.