Hello All,
Thank you for all of your responses to my distress call so far. Good
news! thanx to Ramiro's advices, i'm able to host Yabe in my Windows
Server 2008 VPS. So here are the steps to follow :
- Download and install "Windows Server Resource Kit Tools" from msdn
site.
- Run this following command to register Yabe ( or other play's
application folder ) within command prompt ( type & enter cmd within
run box):
%WIN_SERV_RESKIT%\instsrv.exe play.yabe %WIN_SERV_RESKIT%
\srvany.exe reg add HKLM\SYSTEM\CurrentControlSet\Services\play.yabe
\Parameters /v Application /d "\"%PYTHON_HOME%python.exe\" \"c:
\MyJavaSdks\play-1.0.2.1\play\" run "c:\HostedApps\Yabe" --%
%production"
And here are the detail info of that command :
1. %WIN_SERV_RESKIT% => Path to your Windows Server Resource Kit
Tool's application folder.
2. play.yabe => this is the name that will appear within Services
window.
3. %PYTHON_HOME% => Path to your python's installation folder (e.g.
c:\python)
4. "c:\MyJavaSdks\play-1.0.2.1\play" => this is an example of my
PLay's installation folder. Should be adjusted to point to your
local's play folder.
5. "c:\HostedApps\Yabe" => full path of my Yabe's folder.
6. --%%production => additional parameter that mark several configs
within application.conf.
- Setup play's http server within application.conf as shown below :
%production.http.port=9000
%production.http.address=0.0.0.0
- Refresh your Services window. A new service should be appear within
the list and labeled as 'play.yabe'. If you can't find it, then the
registration was failed. Common pitfalls when running the registration
command is caused by incorrect entered command paramters such as
incorrect path of Python's home, play application folder's. You can
correct it manually through registry editor. Within your opened
regisry editor, browse to 'HKLM\SYSTEM\CurrentControlSet\Services
\play.yabe\Parameters' , look at 'Application' entry in there. Fix its
value if you find there is incorrect paramater in there.
- At this point, you should see 'play.yabe' within your services
window. Start the service, open your browser and browse to your server
address:9000. Your yabe should be loaded.
- To enable the Yabe's server accepting requests from outside server's
domain ( internet), create a firewall rule ensure that this rule
should open Play's port. Enable the rule. Restart play.yabe. Try
browse your yabe from your laptop/PC which is connected to internet.
Well Play Team, i guess it won't be harmful if you guys put this
useful info into Play's Documentation, section Deployment guide.
Cheers,
Bill
> You have a look athttp://
commons.apache.org/daemon/procrun.htmlto see if it helps.
>
> Nicolas
> On 23 apr 2010, at 13:51, Nicolas Dessaigne wrote:
>
>
>
> > About srvany.exe, i'm afraid it won't work. It just launches the command line and no more. For example, when you stop the service, nothing happens. The play instance will continue to run... you need to kill it manually.
>
> > Nicolas
>
> > 2010/4/23 Bill <
saintc0...@gmail.com>