Last active
November 12, 2016 09:03
-
-
Save alitrack/64f5bfae8534c43a9e6418127690abd6 to your computer and use it in GitHub Desktop.
How to compile and run pgAdmin4 in Serve mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for detail, please visit,
以Server的模式运行pgAdmin4