PhotonDemon wrote:Hi Marten,
I'm interested in building a Seaside app under Windows and then packaging it for Linux. I have gotten good at packaging Windows NT services and have packaged a Seaside app as an NT service. I have a friend who runs some Linux servers and I would like to see if I can run a Seaside app on one of his Linux servers. Any advice will be very helpful.
Thanks, Lou
The main idea in the example and also in my demo I am actually working on is very simple: do not reduce all application introduced with Seaside (Seaside, Javascript oriented stuff, Raphael, etc ....).
I was suprised by the size of my running image (a full CouchDB and jason oriented application using Seaside, Scriptacolous, Raphael and the whole SST stuff ..): 2.8 MByte in a headless image running under Windows or Linux.
When considering packaging for Linux: consider the fact, that most Linux servers from those providers ARE headless Linux servers - no GUI running etc. You MUST go via ServerWorkbench to build a suitable image for systems like this. Even a packaged client image (without any GUI windows) needs the GUI. Under Windows you will not see the problem - the system will start in a command window without any problems. Under Linux based servers starting such image will bring up errors and your image is NOT starting.
In general when you have made the first step to create a headless image - using the tips mentioned in this thread - the further development is not that difficult.
Actually I am doing my development under Windows and even the main testing is done in a development image. Then when I am ready I finish/close my configuration maps, switch to Ubuntu (with GUI) do some testing here (for Linux), load the application from my configuration map in a Unix ServerWorkbench passive image, do the headless packaging process and start testing here also (Linux - but I have a GUI here also, therefore this is not a headless test). When this works I transfer the headless image to a headless server - and when this image starts its ok for me (to be sure of headless system).