Commit 40c38009 authored by Patipat Jo's avatar Patipat Jo
Browse files

Update from-source.md

parent 480e096a
......@@ -212,19 +212,6 @@ sudo apt-get install nginx
2. สร้างไฟล์ script wsgi
```sh
sudo cp /usr/lib/ckan/default/src/ckan/wsgi.py /etc/ckan/default/
#####ตัวหย่างคำสั่งด้านในไฟล์ wsgi.py#####
# -- coding: utf-8 --
import os
from ckan.config.middleware import make_app
from ckan.cli import CKANConfigLoader
from logging.config import fileConfig as loggingFileConfig
config_filepath = os.path.join(
os.path.dirname(os.path.abspath(__file__)), 'ckan.ini')
abspath = os.path.join(os.path.dirname(os.path.abspath(__file__)))
loggingFileConfig(config_filepath)
config = CKANConfigLoader(config_filepath).get_config()
application = make_app(config)
```
3. สร้าง wsgi server
......
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