Re: pgAdmin 4 as Web application

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
Cc: "pgadmin-hackers(at)postgresql(dot)org" <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: pgAdmin 4 as Web application
Date: 2016-08-08 16:10:10
Message-ID: CA+OCxoxsg-1z0X28586R2PXF-To0UwNZKm3FH+1-uj0pZDLATQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

On Mon, Aug 8, 2016 at 4:07 PM, Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at> wrote:
> I'm trying to follow
> https://www.pgadmin.org/docs4/dev/server_deployment.html
> to install pgAdmin 4 as web application on RHEL 6, but I didn't get very far:
>
> There is no file "pgAdmin4.wsgi" available for download.
> Did I miss something obvious?

Hmm, no - looks like we did. I know people have been testing in web
mode, so I wonder how this got missed!

I don't have time to test right now, but I believe something like the
following one liner should suffice as your wsgi file:

from pgAdmin4 import app as application

Make sure that's in the same directory as pgAdmin4.py (the web/
directory in the source tree), then point your Apache config to it.

If you need any further quick hints (I'm going offline for the rest of
the day in a minute), this may help:
http://flask.pocoo.org/docs/0.11/deploying/mod_wsgi/ - but do pay
close attention to the comments on threads/prcesses in the pgAdmin
docs.

Please let me know if it works.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Mahesh Balumuri 2016-08-09 06:04:16 Error while running pgAdmin4 with apache wsgi - Ubuntu
Previous Message Neel Patel 2016-08-08 16:02:01 Re: pgAdmin 4 as Web application