Re: ZincStaticServerAdaptor starts with different port

Esteban Maringolo <[email protected]> Sun, 10 May 2020 10:40:01 -0300
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside,gmane.comp.lang.smalltalk.pharo.user
Message-ID <CAJMgPCKzJCDCx2Wyg2axh7D1id5Fe9dcorT8moSCMYLXNDtDqg@mail.gmail.com>
Hi Sven,

I know it is convenient for development, and for deployment I create
it on startup via a startup script (that piece of code is from it).

But what it is weird (or at least unexpected), and what I'm reporting
is that in development the adaptor is restarted at a different port
than the one I saved the image with.

Esteban A. Maringolo


On Sun, May 10, 2020 at 6:50 AM Sven Van Caekenberghe <[email protected]> wrote:
>
> WAServerManager class>>#startUp sends #startUp to all registered adaptors
>
> If you saved an image with a running adaptor in it, it will be restarted when the image comes up. This is cool and works fine, but I find it better suited to development than deployment. When deploying I make sure there are no servers of any kind running, and then start them manually and explicitly in a startup script.
>
> So if something starts up automagically, you must have done something.
>
> BTW, 80 is a restricted port, but I guess you already know that.
>
> > On 10 May 2020, at 00:14, Esteban Maringolo <[email protected]> wrote:
> >
> > Hi,
> >
> > I have a ZnZincStaticServerAdaptor, that after quitting the image and
> > starting it again starts in a different port.
> >
> > So I did:
> > WAServerManager default adaptors do: [ :each | WAServerManager default
> > unregister: each ].
> > (ZnZincStaticServerAdaptor startOn: 8000 andServeFilesFrom:
> > (FileLocator  imageDirectory / 'static' ) asFileReference).
> >
> > And get the server running in the port 8000. [see zn8000.png]
> >
> > But after restarting the image, it is running in the port 80. [see zn80.png]
> >
> > Why is it so?
> >
> > Regards,
> > <zn8000.png><zn80.png>_______________________________________________
> > seaside mailing list
> > [email protected]
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> _______________________________________________
> seaside mailing list
> [email protected]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside