[Grok-dev] getting Grok serving remotely
azriphale at gmail.com
Sat Jan 23 19:42:15 EST 2010
I didn't think it was in the docs at first either, but I have found a
passing mention of it here:
About 3/4 of the way down in the section "Run Tests and Start the Web Server"
If paster is a common way of deploying these apps, this probably does
need some elaboration, but I think the main intention for paster is as
a development tool used on a workstation rather than a server and
deployment will be through apache and mod_wsgi or something (at least
this is the impression I get).
On 24 January 2010 00:08, J. Cameron Cooper <jccooper at gmail.com> wrote:
> On Sat, Jan 23, 2010 at 4:51 PM, Simon Jagoe <azriphale at gmail.com> wrote:
>> On 23 January 2010 18:20, J. Cameron Cooper <jccooper at gmail.com> wrote:
>> > I'm trying to get Grok running on a remote server (an Amazon EC2 one).
>> > Now,
>> > a Zope 2 one I would expect that once it's up on 8080 I'd be able to get
>> > there with the public IP:8080, but I'm not able to do this with my new
>> > Grok
>> > instance. I know it's not the firewalling, since I can get another
>> > server
>> > running on 8080 and see it fine, but with Grok running (with Paster) on
>> > 8080, I get the connection refused from the public IP. I know it's
>> > running,
>> > since I can load it with lynx from the server (as 127.0.0.1:8080).
>> > I notice that when strating it claims that:
>> > Starting server in PID XXXX.
>> > serving on 127.0.0.1:8080
>> > Is it only going to allow connections to this specific name that it's
>> > serving?
>> Exactly, it is only accepting connections to localhost (i.e.
>> 127.0.0.1). If you are using the paster server, you can change this by
>> editing /path/to/project/etc/deploy.ini.in and look for the section
>> like this:
>> use = egg:Paste#http
>> host = 127.0.0.1
>> port = 8080
>> Change the host line to contain 0.0.0.0 to bind to all addresses
>> available, then re-run ./bin/buildout.
> Brilliant, thanks. Works great.
> Is this in the docs anywhere? I didn't see it, and I looked pretty well--I
> think. And it's a bit of an important point.
> Maybe someday my email address will move back to jcameroncooper.com. Stay
> with this one until further notice.
More information about the Grok-dev