filsa.net: Frontier Scripting [ Script Archive | Ideas & Issues | Polyglot | Software | Projects ]

Rendering out to more than one server

Filewriters should be able to see the adrPageTable

Most webmasters who run commercial, public sites use a staging server for previewing content, and a live server which is open to the public.

Currently, Frontier's HTML rendering model presupposes that there will only be one server. However, this is often not the case.

multiFTP: how it works

Fortunately, it was not too difficult to make things work. I wrote a new filewriter--no, actually, I stole Alan German's excellent user.html.filewriters.ftp table, and modified that to suit my needs.

Here is the readme from multiFtp:

Hi this is Phil Suh.

multiFTP is a modification of Alan German's awesome user.html.filewriters.ftp. thanks to Alan for making this possible.

multiFTP allows you to ftp to various servers based on a #renderLocation preference. This is useful for rendering to staging/live servers.

[Caveats] It requires a modification to html.callfilewriterstartup (). We need to pass the address of the page table inside of adrStorage, so that multiFTP can see it.

[How it Works] Changes in multiFtp.startup & multiFtp.shutdown:

startup: copies the pagetable address into the storage table: adrStorage^.adrPageTAble = adrPageTable. If available, copies the adrPageTable^.renderLocation into the adrStorageTable.

shutdown: It checks for adrStorage^.adrpagetable and adrpagetable^.renderLocation, and based on that info, initializes all the FTP account info. Otherwise, it's the same as Alan's script.

Wed, Dec 16, 1998 at 11:40:03 AM by Phil Suh

Ideas & Issues
Site Outline

I&I Home
1998
  05
  Improving Javascript Support
  Featuring suites.jsl: A pageheader script for the <SCRIPT> tag.
  06
  Character Entities
  Make working with HTML character entities easy.
  Copy Address
  FileWriters Questions
  Ideas for discussion
  Navigating the ODB
  Making it easier to get around in Frontier
  Suite Info
  If you write suites, tell your users about yourself!
  07
  Binary Objects in Your Website
  Frontier needs to learn how to render binary objects
  Creating META tags
  How can I put <meta> tags into my Frontier web pages?
  Filemaker and Frontier
  Where can I find resources for scripting Filemaker with Frontier?
  Frontier Mailing Lists
  More signal, less noise
  08
  Comments on Fat Pages
  Good fatpage, bad fatpage
  Quiet Advances
  Userland continues to crank out new features, bug fixes.
  Render Table Memory Issues
  An easy fix to a problem with rendering huge websites
  12
  Rendering out to more than one server
  Filewriters should be able to see the adrPageTable

   
Back to I&I Home   >>  

Back to
the top

This is Phil's Frontier Scripting Site. San Francisco, CA
Copyright © 1996-98, Phil Suh. All Rights Reserved.
http://www.filsa.net/frontier/ii/1998/12/multiFTP.html
This page last built on 6/28/99; 11:08:28 PM

filsa.net: Frontier Scripting [ Script Archive | Ideas & Issues | Polyglot | Software | Projects ]