UNPKG

unserver-unify

Version:

78 lines (51 loc) 1.48 kB
Tools required: 1, NodeJS 2, Sublime Installation: 1. install gulp & bower npm install -g gulp bower 2. npm install npm install 3. bower install bower install 4 Config file Create the \src\app\config.js ```================================================================== angular.module('bamboo-admin') .constant('LocalConfig',{ SUBDOMAIN:'ifx',// fixed sub domain , it will not check the APIDOMAIN:'api.sgedushare.com', // PORT:80, // APIPORT:3002, UIPATH:'/ui', // APIPATH:'/uapi', // MYSQLPATH:'/usql', SHOST:'//s3-ap-southeast-1.amazonaws.com/edushare', RES:'resg', //UPLOADSERVER: 'aws', // aws or alicloud //OSSSERVER:"182.92.6.92:5050", //HTTPSFILESERVER:"https://upload.bamboostudy.com:5443", APPSERVER_HOST: '', // or http://appserver APPSERVER_PORT: '3200', // or empty APPSERVER_PATH: '/#', // or /app PARENT_PORT: '3150', // or empty PARENT_PATH: '/#', // or /app UNIFY_PORT: '3100', // or empty UNIFY_PATH: '/#' // or /app }); ================================================================== ``` After run "gulp serve" command in the terminal, it will use the sgedushare.com as debug server. 5. Build & Run 1) run using tmp gulp serve 2) clean gulp clean 3) build gulp 4) run using dist gulp serve:dist ------------------------- <!--giab:issue_list_start--> your articles will be shown here <!--giab:issue_list_end-->