headless service doesn't work for my wiki
Mark Guzdial
guzdial at cc.gatech.edu
Fri Jan 21 16:09:45 UTC 2000
There is an issue about running headless (discussed on the PWS list
some time ago) that headless works well from Morphic, but not always
from MVC. Make sure that your image is running in MVC.
>
>In my CBOService.image I added the PWS class to the StartUpList of
>SystemDictionary so it will get an startUp message at the service
>startUp. In this message I' have putted: [PWS serveOnPort: 80
>loggingTo: 'log.txt'] fork. This all works if I startup the image
>normally. (not headless)
>What do I do wrong?
The way that most of us run headless is to use a mechanism that
Andreas came up with. Put in a workspace.
Smalltalk snapshot: true andQuit: true.
"All your restore stuff goes here"
PWS serveOnPort: 80 loggingTo: 'log.txt'
Select all of this and DoIt. Your image will save-and-quit...IN THE
MIDDLE OF THE DOIT. When this image starts up, it continues the
DoIt, which is the restore and the PWS startup.
>any help appreciated,
>Mathieu van Echtelt.
>By the way, SqueakWiki is down, so I was not able to look at it for
>possible answers.
It's running fine right now.
Mark
--------------------------
Mark Guzdial : Georgia Tech : College of Computing : Atlanta, GA 30332-0280
(404) 894-5618 : Fax (404) 894-0673 : guzdial at cc.gatech.edu
http://www.cc.gatech.edu/gvu/people/Faculty/Mark.Guzdial.html
More information about the Squeak-dev
mailing list
|