Message from discussion
Time to admit Play does not support on Windows Machine in Production
Received: by 10.66.78.161 with SMTP id c1mr1511611pax.16.1351998646653;
Sat, 03 Nov 2012 20:10:46 -0700 (PDT)
X-BeenThere: play-framework@googlegroups.com
Received: by 10.68.141.79 with SMTP id rm15ls19974073pbb.1.gmail; Sat, 03 Nov
2012 20:10:35 -0700 (PDT)
Received: by 10.68.253.129 with SMTP id aa1mr1464110pbd.17.1351998635568;
Sat, 03 Nov 2012 20:10:35 -0700 (PDT)
Date: Sat, 3 Nov 2012 20:10:34 -0700 (PDT)
From: Ben McCann <benjamin.j.mcc...@gmail.com>
To: play-framework@googlegroups.com
Message-Id: <1cb6aa52-b7f9-40d0-b28c-7ef055117c33@googlegroups.com>
In-Reply-To: <4b3bc9e1-46d6-4648-8cfb-975dc16f483d@googlegroups.com>
References: <b807c547-ff01-4b3a-b5b6-036daddc7bb0@googlegroups.com>
<9928e638-031b-4224-b308-5a581b40d954@googlegroups.com>
<2006ecfb-a7a6-4ed1-af0d-0565b5387948@googlegroups.com>
<3bb66732-8dfb-449a-b55a-6e82035abfce@googlegroups.com>
<5ed29755-a8a2-4fab-bb73-2141ec5407e9@googlegroups.com>
<058d4538-2a48-412f-9fd9-6da10c06027d@googlegroups.com>
<77b04cd3-2e20-4f6c-9195-585a45aa9f97@googlegroups.com>
<d6c068c8-b8ac-4520-8f02-c3ff81d463be@googlegroups.com>
<ab844588-a666-45c9-9839-a155fc0554cd@googlegroups.com>
<CAH3cagMPiWVrn-XbtTkmSsJPu76m-Ubc_TPXZ+iMw94SXzTnkQ@mail.gmail.com>
<4b3bc9e1-46d6-4648-8cfb-975dc16f483d@googlegroups.com>
Subject: Re: [play-framework] Re: Time to admit Play does not support on
Windows Machine in Production
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_83_23100120.1351998635059"
------=_Part_83_23100120.1351998635059
Content-Type: multipart/alternative;
boundary="----=_Part_84_18948234.1351998635060"
------=_Part_84_18948234.1351998635060
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
What you're trying to do is bad practice to begin with. You shouldn't be
running Play in production from the Play console regardless of whether
you're using Windows or Linux. It is much better to do "play dist" and then
invoke directly with the Java command. On Linux I use Supervisor<http://supervisord.org/>to run in the background. On Windows you could run as a service or behind a
proxy as you mentioned. We do these things on Linux as well. We run our app
on Linux with a high port number so that administrator privileges are not
required to launch it.
On Friday, November 2, 2012 7:22:38 PM UTC-7, Jay Park wrote:
>
> Thanks, Peter.
>
> Note play is not supporting windows in production mode, therefore stage
> and start won't work under windows
> The above is from wiki.
> https://github.com/playframework/Play20/wiki/Production
>
> So, it is true and sad news for Windows community or for those who have
> customers only having Windows hosting (my case)
> Maybe, there are currently no commercial web sites with Play on Windows?
> Hope that is not true.
>
> I know there are workarounds like launching Play directly
> with Java command.
> But then, Ctrl+D to close the Play console won't work. So, command prompt
> on Windows should be always on, which is not a good practice.
> Or you have to use Windows service wrapper or something.
>
> Or Windows users have to run Play on different ports than 80 and place a
> front-end web server as proxy.
>
> However, all I mentioned shows that Play is not Windows friendly.
>
> Jay
>
------=_Part_84_18948234.1351998635060
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
What you're trying to do is bad practice to begin with. You shouldn't be ru=
nning Play in production from the Play console regardless of whether you're=
using Windows or Linux. It is much better to do "play dist" and then invok=
e directly with the Java command. On Linux I use <a href=3D"http://supervis=
ord.org/">Supervisor</a> to run in the background. On Windows you could run=
as a service or behind a proxy as you mentioned. We do these things on Lin=
ux as well. We run our app on Linux with a high port number so that adminis=
trator privileges are not required to launch it.<div><br><br>On Friday, Nov=
ember 2, 2012 7:22:38 PM UTC-7, Jay Park wrote:<blockquote class=3D"gmail_q=
uote" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;pad=
ding-left: 1ex;"><div><span style=3D"line-height:22px"><font color=3D"#0000=
00" size=3D"2" face=3D"arial, sans-serif">Thanks, Peter.</font></span></div=
><div><span style=3D"line-height:22px"><font color=3D"#000000" size=3D"2" f=
ace=3D"arial, sans-serif"><br></font></span></div><font size=3D"2" face=3D"=
arial, sans-serif"><span style=3D"color:rgb(119,119,119);line-height:22px">=
Note play is not supporting windows in production mode, therefore </sp=
an><code style=3D"margin-right:2px;margin-left:2px;padding-right:5px;paddin=
g-left:5px;border:1px solid rgb(234,234,234);background-color:rgb(248,248,2=
48);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-ri=
ght-radius:3px;border-bottom-left-radius:3px;white-space:nowrap;color:rgb(1=
19,119,119)">stage</code><span style=3D"color:rgb(119,119,119);line-height:=
22px"> and </span><code style=3D"margin-right:2px;margin-left:2px=
;padding-right:5px;padding-left:5px;border:1px solid rgb(234,234,234);backg=
round-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-ra=
dius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;white=
-space:nowrap;color:rgb(119,119,119)">start</code><span style=3D"color:rgb(=
119,119,119);line-height:22px"> won'<wbr>t work under windows</span></=
font><div><div><font color=3D"#000000" size=3D"2" face=3D"arial, sans-serif=
"><span style=3D"line-height:22px">The above is from wiki. </span><a h=
ref=3D"https://github.com/playframework/Play20/wiki/Production" target=3D"_=
blank">https://github.com/<wbr>playframework/Play20/wiki/<wbr>Production</a=
></font></div><div><br></div><div><font size=3D"2" face=3D"arial, sans-seri=
f"><font color=3D"#000000"><span style=3D"line-height:22px">So, it is true =
and sad news for Windows community or for those who have customers only hav=
ing Windows hosting (my case)</span></font></font></div><div><font size=3D"=
2" face=3D"arial, sans-serif"><font color=3D"#000000"><span style=3D"line-h=
eight:22px">Maybe, there are currently no commercial web sites wi=
th Play on Windows? Hope that is not true. </span></font><br></font></=
div><div><span style=3D"line-height:22px;color:rgb(0,0,0)"><font size=3D"2"=
face=3D"arial, sans-serif"><br></font></span></div><div><font size=3D"2" f=
ace=3D"arial, sans-serif"><font color=3D"#000000"><span style=3D"line-heigh=
t:22px">I know there are workarounds </span><span style=3D"line-h=
eight:22px">like <wbr>launching Play directly with Java =
;command.</span></font></font></div><div><font size=3D"2" face=3D"arial, sa=
ns-serif"><font color=3D"#000000"><span style=3D"line-height:22px">But then=
, </span></font><span style=3D"background-color:rgb(248,248,248);color=
:rgb(51,51,51);line-height:19px;white-space:nowrap">Ctrl+D </span><spa=
n style=3D"background-color:rgb(248,248,248);line-height:19px;white-space:n=
owrap"><font color=3D"#000000">to close the Play console won't work. So, co=
mmand prompt on Windows should be always on, which is not a good practice.&=
nbsp;</font></span></font></div><div><font color=3D"#000000" face=3D"arial,=
sans-serif" size=3D"2"><span style=3D"line-height:19px;white-space:nowrap"=
>Or you have to use Windows service wrapper or something. </span></fon=
t></div><div><font color=3D"#000000" face=3D"arial, sans-serif" size=3D"2">=
<span style=3D"line-height:19px;white-space:nowrap"><br></span></font></div=
><div><font color=3D"#000000" face=3D"arial, sans-serif" size=3D"2"><span s=
tyle=3D"line-height:19px;white-space:nowrap">Or Windows users have to run P=
lay on different ports than 80 and place a front-end web server as proxy.&n=
bsp;</span></font></div><div><font color=3D"#000000" face=3D"arial, sans-se=
rif" size=3D"2"><span style=3D"line-height:19px;white-space:nowrap"><br></s=
pan></font></div><div><font color=3D"#000000" face=3D"arial, sans-serif" si=
ze=3D"2"><span style=3D"line-height:19px;white-space:nowrap">However, all I=
mentioned shows that Play is not Windows friendly. </span></font></di=
v><div><br></div><div><span style=3D"background-color:rgb(248,248,248);colo=
r:rgb(51,51,51);line-height:19px;white-space:nowrap"><font size=3D"2" face=
=3D"arial, sans-serif">Jay</font></span></div></div></blockquote></div>
------=_Part_84_18948234.1351998635060--
------=_Part_83_23100120.1351998635059--