GemStone & Seaside
A separate installation script is available that will construct a GemStone instance with Seaside and GT loaded.
The GT code is normally installed in to the GemStone instance as the SystemUser in the Globals symbol dictionary. The default Seaside installation uses the DataCurator user and installs the code in UserGlobals symbol dictionary (to avoid breaking any SystemUser administrative operations). For compatibility with Seaside, GT is installed in to a separate symbol dictionary: GlamorousToolkitGlobals.
You will need to download the gt4gemstone git repository. Open the Git tool and add gt4gemstone:
URL: git@github.com:feenkcom/gt4gemstone.git
Then save the image and continue with the steps below.
From a terminal install GemStone and build the database:
# cd to the location of GlamorousToolkit.image
cd /path/to/imageDirectory
source pharo-local/iceberg/feenkcom/gt4gemstone/scripts/dev_preconfigure_gemstone.sh --gt4gs vx.y.z
gt4gemstone/scripts/setup-remote-gemstone-seaside.sh 2>&1 | tee setup.log
replacing the version number with the latest GT release version, e.g. v1.1.172.
Add gt4gemstone.properties:
For a development image:
GtImageSetup createLocalGt4GemStoneProperties. GtWorld requestAllInstancesHomeUpdate.
Start GemStone:
startstone gs64stone
startnetldi -g -P 50377
Start the web server:
topaz -l -I remote-gemstone/gt4gemstone-3.7/loginDataCurator.topaz
topaz 1> run
WAGemStoneRunSeasideGems startGemServerOn: 9001.
%
At this point you should be able to view the welcome page from a browser:
Confirm that the Counter example is working and that you can increment and decrement the counter.
From a GemStone snippet, modify WACounter>>increase:
1. Ensure the datacurator session is selected in the snippet below.
2. Evaluate and inspect the snippet below.
3. From the Meta tab modify the increase method to change the amount added.
4. Commit the changes using the Accept button above the method (tick symbol).
WACounter
5. Confirm the change by incrementing the counter from the web page.