Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWn8P-0000Tk-0i for pgadmin-hackers@arkaria.postgresql.org; Mon, 08 Aug 2016 16:10:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bWn8O-0003EE-GP for pgadmin-hackers@arkaria.postgresql.org; Mon, 08 Aug 2016 16:10:36 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bWn8O-0003E8-4l for pgadmin-hackers@postgresql.org; Mon, 08 Aug 2016 16:10:36 +0000 Received: from mail-it0-x236.google.com ([2607:f8b0:4001:c0b::236]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bWn8K-0003vC-V7 for pgadmin-hackers@postgresql.org; Mon, 08 Aug 2016 16:10:35 +0000 Received: by mail-it0-x236.google.com with SMTP id u186so77689272ita.0 for ; Mon, 08 Aug 2016 09:10:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=FGg5kC3sMasvHaqnnSE2LY+A2I0hmM3m/+xriZoukSU=; b=q9trv7AjTTluOegVIWJUz0E5cJQZtgyPc5OY5TVQL3iM6+r3hVNfk2sSPPFmVT6gJ+ GUsEdK4pPCSdka3CQfK8HxMjAivqsS4Pt+QNCXyJ7jcNJgAj4xBqWAnySdOR+RVqWiBx wKVHzlvX6Jyrq8PWyPqOGdZxb0iq4t6nwVTroGeSUsGizbotp+N4am30P7lUqIulK48A LOi6F3F3hAxOv8SpoyFoHg5S9N26NEZNvEiYT4dm4moJi4IbbhcUbSXHIomKYrHaxv0G yFCRxoAehl9LCVUYBm5DLsEj+dVEIjUiQG9P1Iu+g7o00Q+mcRc0XhMSmWLlbPRtCav2 WDjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=FGg5kC3sMasvHaqnnSE2LY+A2I0hmM3m/+xriZoukSU=; b=mXo/dAkexFpFvbsYTPfRJB2PDRVVujzW/EuXHugpjRsDCm3lLZoFvq/KhCeC9N8bGg vzSR8wcG2Tk4Kqks4GWwNFojHnSZHqyUlIdvdpOq0gN6NTzxxa/xEG4MwJRToOrs8zHZ aES/HBB7hBjHzdkCFW7O06+c//M8UsAfX4MKOd1DXCosxfzCR1l5vh3cJb2Z3ROpmrzy vwrigBiViVrRt0T1kS48PEkrT9xx5yrBrKq390leZwL3nxyEygUCrtlJT9mUaaGRsWJH KLP34izkAL3qX9igWxs8rX4AByBHDP2f0uewdJ3qW6nEJHzhMlC9K0kQENIxVgNRnPsN ntIw== X-Gm-Message-State: AEkoouuAbggaLBo2LPMBcBSaPJh168GQ1bMiuZU7QP5khek6FHk0m2/VPtJoTYed1Ka+kfy/pg+aIWWpY3tcEA== X-Received: by 10.36.14.20 with SMTP id 20mr19279693ite.88.1470672611337; Mon, 08 Aug 2016 09:10:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.208.97 with HTTP; Mon, 8 Aug 2016 09:10:10 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Mon, 8 Aug 2016 17:10:10 +0100 Message-ID: Subject: Re: pgAdmin 4 as Web application To: Albe Laurenz Cc: "pgadmin-hackers@postgresql.org" Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org On Mon, Aug 8, 2016 at 4:07 PM, Albe Laurenz 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 -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers