public inbox for [email protected]
help / color / mirror / Atom feedFrom: Ashesh Vashi <[email protected]>
To: Albe Laurenz <[email protected]>
Cc: Dave Page *EXTERN* <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: pgAdmin 4 as Web application
Date: Wed, 10 Aug 2016 13:20:46 +0530
Message-ID: <CAG7mmoxDD35hq+L8nTMW80CbrZa=MpNVX17ExCr-KuLYN8+-gQ@mail.gmail.com> (raw)
In-Reply-To: <A737B7A37273E048B164557ADEF4A58B5388C341@ntex2010i.host.magwien.gv.at>
References: <A737B7A37273E048B164557ADEF4A58B5388A845@ntex2010i.host.magwien.gv.at>
<CA+OCxoxsg-1z0X28586R2PXF-To0UwNZKm3FH+1-uj0pZDLATQ@mail.gmail.com>
<A737B7A37273E048B164557ADEF4A58B5388C341@ntex2010i.host.magwien.gv.at>
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgadmin-hackers>
On Wed, Aug 10, 2016 at 12:58 PM, Albe Laurenz <[email protected]>
wrote:
> Dave Page wrote:
> >> 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.
>
> Thanks, that was very helpful indeed.
>
> I had to put more stuff into the wsgi file, probably because my
> installation
> is in some nonstandard location:
>
> import sys
> sys.path.insert(0, '/home/laurenz/rpmbuild/pgadmin4-1.0-beta3/web')
> from pgAdmin4 import app as application
>
> Now I'm getting to the same error as with the standalone version, see
> https://www.postgresql.org/message-id/A737B7A37273E048B164557ADEF4A5
> 8B5388C035%40ntex2010i.host.magwien.gv.at
Looks like the Python 2.6 compatibility has been broken.
For now - can you use Python 2.7/3?
--
Thanks & Regards,
Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company
<http://www.enterprisedb.com/;
*http://www.linkedin.com/in/asheshvashi*
<http://www.linkedin.com/in/asheshvashi;
>
>
> It would be good to improve the documentation for "Server deployment".
> It should be mentioned that you don't need the binaries for that, and that
> the "web" subdirectory contains all you need.
>
>
> --
> Sent via pgadmin-hackers mailing list ([email protected])
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers
>
view thread (14+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: pgAdmin 4 as Web application
In-Reply-To: <CAG7mmoxDD35hq+L8nTMW80CbrZa=MpNVX17ExCr-KuLYN8+-gQ@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox