Обсуждение: pgAdmin 4 commit: Ship with pre-configured paths that can work inboth

Поиск
Список
Период
Сортировка

pgAdmin 4 commit: Ship with pre-configured paths that can work inboth

От
Dave Page
Дата:
Ship with pre-configured paths that can work in both Server and Desktop modes out of the box. Fixes #2662

Ship the web code using server mode with appropriate paths by default and enable the runtime to override the mode, and
forceinto desktop changing the appropriate paths to user-specific ones. 

Note that this change will likely cause more advanced users to have to tweak configs.

RPMs will also need changes to create /var/lib/pgadmin and /var/log/pgadmin, owned by the webserver account.

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=f195b18f2d9145592ae60c55840405dc3dfc8ea6

Modified Files
--------------
runtime/Server.cpp         |   3 +-
web/config.py              | 106 +++++++++++++++++++++++++++------------------
web/pgAdmin4.py            |  11 +++++
web/regression/runtests.py |  11 +++++
4 files changed, 89 insertions(+), 42 deletions(-)


Re: pgAdmin 4 commit: Ship with pre-configured paths that can work in both

От
Dave Page
Дата:
All,

Please note, this patch will probably break your dev environments :-). You may need to override a few more things in config_local.py, or as in my case, remove a few things.

Devrim; we'll need RPM changes for this. We need to work together to thoroughly test those changes. Please book time in my calendar to collaborate.

On Fri, Aug 25, 2017 at 10:54 AM, Dave Page <dpage@pgadmin.org> wrote:
Ship with pre-configured paths that can work in both Server and Desktop modes out of the box. Fixes #2662

Ship the web code using server mode with appropriate paths by default and enable the runtime to override the mode, and force into desktop changing the appropriate paths to user-specific ones.

Note that this change will likely cause more advanced users to have to tweak configs.

RPMs will also need changes to create /var/lib/pgadmin and /var/log/pgadmin, owned by the webserver account.

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=f195b18f2d9145592ae60c55840405dc3dfc8ea6

Modified Files
--------------
runtime/Server.cpp         |   3 +-
web/config.py              | 106 +++++++++++++++++++++++++++------------------
web/pgAdmin4.py            |  11 +++++
web/regression/runtests.py |  11 +++++
4 files changed, 89 insertions(+), 42 deletions(-)




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

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

Re: pgAdmin 4 commit: Ship with pre-configured paths that can workin both

От
Devrim Gündüz
Дата:
Hi Dave,

On Fri, 2017-08-25 at 10:59 +0100, Dave Page wrote:

> Devrim; we'll need RPM changes for this. We need to work together to
> thoroughly test those changes. Please book time in my calendar to
> collaborate.

Ack.

Regards,
--
Devrim Gündüz
EnterpriseDB: https://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR