Anyone know how I can feed an image the port I want to start Seaside on
through the vm command line as the image starts up? On Windows? Ramon Leon http://onsmalltalk.com _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
VisualWorks or Squeak? _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
>
> VisualWorks or Squeak? > > Cheers! > > -Boris Sorry, Squeak. Ramon Leon http://onsmalltalk.com _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
On 1/26/07, Ramon Leon <[hidden email]> wrote:
> > > > VisualWorks or Squeak? > > > > Cheers! > > > > -Boris > > Sorry, Squeak. I use this: WAKom class>>startUp | params | params _ SmalltalkImage current extractParameters. (params includesKey: 'PORT') ifTrue: [port _ params at: 'PORT']. port ifNotNil: [self startOn: port asNumber] Then you just need squeak foo.image "" port 9090 Note the "" - the first arg has to be blank. Avi _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Ramon Leon-5
Hey Ramon,
I know I'm showing my age. I even used a command prompt to write the batch file. But why not just throw your own batch file and use startup. Write a batch file in your squeak directory named something like: startOnPort.bat echo %1 > seasidePort.txt squeak.exe %2 then call the bat file by startOnPort 8080 myImageName.image Then add a start up method in your image somewhere that reads and deletes the file seasidePort.txt Ron Teitelbaum > -----Original Message----- > From: Ramon Leon > Sent: Friday, January 26, 2007 3:25 PM > > Anyone know how I can feed an image the port I want to start Seaside on > through the vm command line as the image starts up? On Windows? > > Ramon Leon > http://onsmalltalk.com > > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Ok I take it back, Avi's method is better!
HEHEH! Ron > -----Original Message----- > From: [hidden email] [mailto:seaside- > [hidden email]] On Behalf Of Ron Teitelbaum > Sent: Friday, January 26, 2007 3:54 PM > To: 'The Squeak Enterprise Aubergines Server - general discussion.' > Subject: RE: [Seaside] Seaside Port on Image Startup? > > Hey Ramon, > > I know I'm showing my age. I even used a command prompt to write the > batch > file. But why not just throw your own batch file and use startup. > > Write a batch file in your squeak directory named something like: > startOnPort.bat > > echo %1 > seasidePort.txt > squeak.exe %2 > > then call the bat file by > > startOnPort 8080 myImageName.image > > Then add a start up method in your image somewhere that reads and deletes > the file seasidePort.txt > > Ron Teitelbaum > > > > -----Original Message----- > > From: Ramon Leon > > Sent: Friday, January 26, 2007 3:25 PM > > > > Anyone know how I can feed an image the port I want to start Seaside on > > through the vm command line as the image starts up? On Windows? > > > > Ramon Leon > > http://onsmalltalk.com > > > > _______________________________________________ > > Seaside mailing list > > [hidden email] > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Avi Bryant-2
> I use this:
> > WAKom class>>startUp > | params | > params _ SmalltalkImage current extractParameters. > (params includesKey: 'PORT') ifTrue: [port _ params at: 'PORT']. > port ifNotNil: [self startOn: port asNumber] > > Then you just need > > squeak foo.image "" port 9090 > > Note the "" - the first arg has to be blank. > > Avi Cool, but now I see unnecessary, not suprisingly, it's already in Seaside, so simply adding WAKom to the startup list will give you this ability. Though for anyone else who's curious, you also need to add WAKom (or your subclass) to the start up list via... Smalltalk addToStartUpList: WAKom Thanks Avi! Ramon Leon http://onsmalltalk.com _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Ron Teitelbaum
Please can someone tell me where do I find Avi's method? Thank You! Adrian |
OK, I got it. To explain why this happened: On nabbles.com, where I found this, only part of the thread was mirrored. Sorry for the confusion. (Btw. why does nabbles mirror only parts of threads of seaside@lists.squeakfoundation.org ?) Cheers Adrian |
In reply to this post by Ramon Leon-5
See below, _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Adrian Schmitt
http://lists.squeakfoundation.org/pipermail/seaside/2007-January/010417.html
Ron > -----Original Message----- > From: Adrian Schmitt > > Ron Teitelbaum wrote: > > > > Ok I take it back, Avi's method is better! > > Ron > > > > Please can someone tell me where do I find Avi's method? > > Thank You! > Adrian > > -- > View this message in context: http://www.nabble.com/Seaside-Port-on-Image- > Startup--tf3125000.html#a8692467 > Sent from the Squeak - Seaside mailing list archive at Nabble.com. > > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |