Skip to content

Instantly share code, notes, and snippets.

@alitrack
Last active November 12, 2016 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alitrack/64f5bfae8534c43a9e6418127690abd6 to your computer and use it in GitHub Desktop.
Save alitrack/64f5bfae8534c43a9e6418127690abd6 to your computer and use it in GitHub Desktop.
How to compile and run pgAdmin4 in Serve mode
sudo pip install virtualenvwrapper
virtualenv pgadmin4
cd pgadmin4/
source bin/activate
wget https://ftp.postgresql.org/pub/pgadmin3/pgadmin4/v1.1/source/pgadmin4-1.1.tar.gz
tar xf pgadmin4-1.1.tar.gz
cd pgadmin4-1.1/
#make sure postgresql develop library exists,
# for debian/ubuntu
#sudo apt-get install libpq-dev
#for centos
#yum install postgresql-devel
#fix a bug in requirements_py2.txt
sed -i 's/;.*//' requirements_py2.txt
pip install -r requirements_py2.txt
python web/setup.py
cat >>web/config_local.py << EOF
# -*- coding: utf-8 -*-
from config import *
DEFAULT_SERVER = '0.0.0.0'
DEFAULT_SERVER_PORT = 8080
EOF
pip install sphinx
make docs
python web/pgAdmin4.py
@alitrack
Copy link
Author

for detail, please visit,
以Server的模式运行pgAdmin4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment