Seaside Port on Image Startup?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Seaside Port on Image Startup?

Ramon Leon-5
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
Reply | Threaded
Open this post in threaded view
|

Re: Seaside Port on Image Startup?

Boris Popov, DeepCove Labs (SNN)
Re: [Seaside] Seaside Port on Image Startup?

VisualWorks or Squeak?

Cheers!

-Boris
(Sent from a BlackBerry)

----- Original Message -----
From: [hidden email] <[hidden email]>
To: 'The Squeak Enterprise Aubergines Server - general discussion.' <[hidden email]>
Sent: Fri Jan 26 12:25:17 2007
Subject: [Seaside] Seaside Port on Image Startup?

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
Reply | Threaded
Open this post in threaded view
|

RE: Seaside Port on Image Startup?

Ramon Leon-5
>
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Seaside Port on Image Startup?

Avi Bryant-2
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
Reply | Threaded
Open this post in threaded view
|

RE: Seaside Port on Image Startup?

Ron Teitelbaum
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
Reply | Threaded
Open this post in threaded view
|

RE: Seaside Port on Image Startup?

Ron Teitelbaum
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
Reply | Threaded
Open this post in threaded view
|

RE: Seaside Port on Image Startup?

Ramon Leon-5
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
Reply | Threaded
Open this post in threaded view
|

RE: Seaside Port on Image Startup?

Adrian Schmitt
In reply to this post by Ron Teitelbaum
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
Reply | Threaded
Open this post in threaded view
|

RE: Seaside Port on Image Startup?

Adrian Schmitt
Adrian Schmitt wrote
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
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
Reply | Threaded
Open this post in threaded view
|

Fw: Seaside Port on Image Startup?

Boris Popov, DeepCove Labs (SNN)
In reply to this post by Ramon Leon-5
Fw: [Seaside] Seaside Port on Image Startup?

See below,

Cheers!

-Boris
(Sent from a BlackBerry)

----- Original Message -----
From: [hidden email] <[hidden email]>
To: The Squeak Enterprise Aubergines Server - general discussion. <[hidden email]>
Sent: Fri Jan 26 12:52:37 2007
Subject: Re: [Seaside] Seaside Port on Image Startup?

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


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: RE: Seaside Port on Image Startup?

Ron Teitelbaum
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