Generating static HTML pages using the command line tool
You begin the page generation process either by invoking the page generator program at the command line on your server or by using a menu command built into GoLive.
To perform page generation from the command line: - Go to the command line on the machine where you have GoLive installed.
- Use the cd command to navigate to the GoLive installation folder, then to the Modules folder, and finally to the PageGenerator folder.
- Type one of the following:
- PageGenerator <URL list file> <output dir> <skip levels> <proxy host> <proxy port> (Windows)
- ./PageGenerator.sh <URL list file> <output dir> <skip levels> <proxy host> <proxy port> (Mac OS X)
The parameters for these commands include: - <URL list file> is the URL to the HTML tables listing the pages to be generated. The reference can be a URL (remote or local) or an OS-specific pathname.
- <output dir> is the pathname to where output files should be placed. This parameter is optional. The default location is <install dir>/Modules/PageGenerator.
- <skip levels> is a number indicating the number of directory levels to remove from the left of generated filenames. For example, a page served from a URL of the form "/a/b/c/d.asp" with an output file of "f1.html" and skip levels set to 0, gets a final filename "a/b/c/f1.html." With skip levels set to 2, the name would be "c/f1.html". This parameter is optional with the default set to 0.
- <proxy host> and <proxy port> identify your proxy server (for sending requests outside a firewall. These are optional parameters.
- Press Enter.
The page generator program runs, using the parameters you entered.
|