Commit f0ee6a2e authored by thepaeth's avatar thepaeth
Browse files

update from-source add setup datapusher

parent 4270e1d6
......@@ -227,6 +227,10 @@ sudo apt-get install supervisor
#### 13.5 สร้างไฟล์ config supervisor สำหรับ uwsgi
# สร้าง log โฟร์เดอร์สำหรับ CKAN
sudo mkdir -p /var/log/ckan
# สร้าง supervisor config สำหรับ ckan-uwsgi
sudo vi /etc/supervisor/conf.d/ckan-uwsgi.conf
......@@ -241,8 +245,8 @@ numprocs=1
; Log files - change this to point to the existing CKAN log files
; Make sure that the worker is started on system start and automatically
; restarted if it crashes unexpectedly.
......@@ -320,14 +324,40 @@ sudo supervisorctl reload
### 15. ติดตั้งและตั้งค่า DataPusher
sudo apt-get install python-dev python3-venv build-essential libxslt1-dev libxml2-dev zlib1g-dev git libffi-dev
# Install requirements for the DataPusher
sudo apt-get install python-dev python-virtualenv build-essential libxslt1-dev libxml2-dev git libffi-dev
# Create a virtualenv for datapusher
sudo virtualenv /usr/lib/ckan/datapusher
# Create a source directory and switch to it
sudo mkdir /usr/lib/ckan/datapusher/src
cd /usr/lib/ckan/datapusher/src
# Clone the source (you should target the latest tagged version)
sudo git clone
sudo mkdir -p /usr/lib/ckan/datapusher
# Install the DataPusher and its requirements
cd datapusher
sudo /usr/lib/ckan/datapusher/bin/pip install --use-feature=2020-resolver -r requirements.txt
sudo /usr/lib/ckan/datapusher/bin/python develop
sudo chown `whoami` /usr/lib/ckan/datapusher
# Install uWSGI
sudo /usr/lib/ckan/datapusher/bin/pip install uwsgi
sudo python3 -m venv /usr/lib/ckan/datapusher
# copy deployment to /etc/ckan/datapusher
sudo cp -r /usr/lib/ckan/datapusher/src/datapusher/deployment /etc/ckan/datapusher
sudo chown `whoami` /etc/ckan/datapusher
# Create CKAN log folder
sudo mkdir -p /var/log/ckan
สร้างไฟล์ supervisor config สำหรับ datapusher
sudo vi /etc/supervisor/conf.d/ckan-datapusher.conf
......@@ -358,6 +388,11 @@ stopwaitsecs = 600
; Required for uWSGI as it does not obey SIGTERM.
ทำการ reload supervisor
sudo supervisorctl reload
### 16. ติดตั้งและตั้งค่า [CKAN Extensions](
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment