| SeedSandbox |
UserPreferences |
| SEED Wiki | FrontPage | RecentChanges | TitleIndex | WordIndex | SiteNavigation | HelpContents |
How to MakeTwo SEEDSRun on one machine
A sandbox is a SEED installation that has the same directory structure as a standard SEED, but which shares its FIG/Data directory and the relational database with a full SEED on the same computer. We use these primarily for doing code development, where multiple users can perform independent work on independent copies of the SEED code without impacting each other or a production server on the same machine.
Sandboxes are created with the make_sandbox command. I am not documenting this at this point, as I am in the midst of being crunched for time and this page is a placeholder for the information I'm writing in the next paragraph :-).
Here is a typical recipe for making a sandbox (Ed) that I'm writing down so Bob doesn't have to keep telling me:
Once a sandbox is created, it is occasionally necessary to rerun the configure script for the sandbox (for instance, if one is working on the bootstrapping code itself). Currently, the bootstrapping code does not explicitly know about sandboxes, and will hence reconfigure the setup to not work properly in the sandbox environment. There is a set of environment variables that can be set to work around this problem. (A longer-term solution will involve the initial bootstrap or the make_sandbox invocation recording the configuration settings in a file for subsequent runs of a bootstrap to use as defaults).
The configure script recognizes the following environment variables:
FIGCONFIG_SANDBOX: Sandbox name; usually the user's name. Used to configure the FIG URL.
FIGCONFIG_DBNAME: Name of the database to use for SEED.
FIGCONFIG_DBUSER: Username for connecting to the database.
FIGCONFIG_DBPORT: Database port.
FIGCONFIG_DBPORT: (For postgres) number of database buffers to use.