Activator http port

1,198 views
Skip to first unread message

Alexandros Karypidis

unread,
Jan 8, 2014, 1:29:49 PM1/8/14
to play-fr...@googlegroups.com
Hi all,

So, before I embarrass myself, I just want to note that I just downloaded Play. I downloaded the "typesafe activator" distribution as it is advertised as the easier to get started with and went through a hello-java tutorial. Really cool stuff.

Anyway, my first question is, how do I change the application port? The activator runs on 8888 and the app is on 9000. Say I want to use 9090 for the app instead, how do I do that?

I searched the net and found this really useful answer which is based on plain (non-activator) play: http://stackoverflow.com/a/8206747/309816

Unfortunately running: "activator ui -Dhttp.port=9000" had no effect.

I also edited my application.conf and added the line: http.port=9000

...which also seemed to be ignored.

So how does the activator get configured? And on the same topic, what if I wanted to change 8888? And since at this point I'm thinking out aloud, the activator looks like a play app itself, so why is http.port ignored by "activator ui -Dhttp.port=9000"?  I'd understand if that switched 8888 to 9000. It'd mean the param is picked up by activator front-end and the 9000 is defined by some other param (I'd expect to get some sort of "port already bound" exception then as activator and test-app would try to launch servers on the same port).

Thanks!

Alexandros Karypidis

unread,
Jan 8, 2014, 1:35:42 PM1/8/14
to play-fr...@googlegroups.com
Hmm, yep... Silly me, JVM args go before program args. "activator -Dhttp.port=9090 ui" works and changes 8888 to 9090

Any way to control the application's port then?

James Ward

unread,
Jan 8, 2014, 5:55:45 PM1/8/14
to play-fr...@googlegroups.com
Unfortunately you can't yet change the Play app port from the UI. But
you can change it via the CLI:
activator "~run 9999"

-James
> --
> You received this message because you are subscribed to the Google
> Groups "play-framework" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to play-framewor...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages