DPR Asster is a resource server
- try asset/component?20
- try asset/combo?1002,core/plugin/ajaxf...e.js
- or a magic
1.0.0 use node 4.*
git clone [git-repo-url] dpr_asseter
cd dpr_asseter
npm rebuild
cp config.json.dist config.json
vi config.json
config.json
{
// the port DPR Asseter focks on
"listen" :"14445",
//ssl options
"sslOptions":{
// https On/Off
"server" : "on",
// https focks
"listen" : "14446",
// ssl certs
"keyPath": "/home/xiao4/work/dpr_asseter/conf/ssl/key.pem",
"certPath": "/home/xiao4/work/dpr_asseter/conf/ssl/cert.pem",
"caPath": "/home/xiao4/work/dpr_asseter/conf/ssl/ca.pem"
},
//dm303 Monitor setting, trun off if u don't has one.
"monitorOptions":{
"server": "on",
"listen": "14500"
},
// where all the resource files are
"filePath" :"/home/xiao4/git/dpr_files",
// DPR Asseter will put temp files in it
"tmpPath" :"/home/xiao4/tmp/combo",
// combo url prefix
"comboPathName" :"/asset/combo",
// component url prefix
"componentPathName" :"/asset/component",
// how to get the version string in a url
"strRegVersion":"\\?(\\w+),?",
// use this server for develop or not
"dev" :false,
// log accesses or not
"log" :true,
// cache limit
"cacheLimit":300,
// maximum child worker count
"processerLimit":4,
// mime types
"MIME" : {
"jpg": "image/jpeg",
"gif": "image/gif",
"png": "image/png",
"ico": "image/x-icon",
"icon": "image/x-icon",
"icns": "image/x-icns",
"eot": "application/vnd.ms-fontobject",
"otf": "application/font-sfnt",
"ttf": "application/font-sfnt",
"woff": "application/font-woff",
"svg": "image/svg+xml",
"svgz": "image/svg+xml",
"css": "text/css",
"js": "text/javascript",
"html": "text/html",
"htm": "text/html",
"txt": "text/plain",
"map": "application/json",
"mobileconfig": "application/mobileconfig"
},
// compress specific kinds of files or not
"clinetZipExt" : {
"css": true,
"js": true,
"html": true,
"htm": true,
"txt": true,
"eot": true,
"otf": true,
"ttf": true,
"svg": true,
"svgz": true
}
}
. dpr.sh start
DPR Asster uses a number of open source projects to work properly:
- Node.js - making all this come possible
- Twitter Bootstrap - great UI boilerplate for modern web apps
memeda!