Configuration hard coding

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

Configuration hard coding

Maarten Mostert-2
Hi,
There must be a way to modify Server Hostname, Server Path and Server Port by code ?
Anyone knows how to do that ?
Regards,
@+Maarten,

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

Re: Configuration hard coding

Paul DeBruicker
See:
http://book.seaside.st/book/advanced/deployment/deployment-preparing

        | app |
        app :=  WAAdmin register: self asApplicationAt: 'myApp'.
       
app
    preferenceAt: #serverProtocol put: 'http';
    preferenceAt: #serverHostname put: 'localhost';
    preferenceAt: #serverPort put: 8080;
    preferenceAt: #serverPath put: '/'


On Nov 11, 2013, at 12:44 AM, Maarten Mostert <[hidden email]> wrote:

> Hi,
> There must be a way to modify Server Hostname, Server Path and Server Port by code ?
> Anyone knows how to do that ?
> Regards,
> @+Maarten,
> _______________________________________________
> 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