Przeglądaj źródła

savae yanxue

master
leiyun 10 miesięcy temu
rodzic
commit
356e265f68
2 zmienionych plików z 30 dodań i 0 usunięć
  1. +9
    -0
      src/common/config/env/yanxue.js
  2. +21
    -0
      www/yanxue.js

+ 9
- 0
src/common/config/env/yanxue.js Wyświetl plik

@@ -0,0 +1,9 @@
'use strict';

export default {
domains:[
"admin.yanxueji.net",
"api.yanxueji.net",
],
CERT_DIR:"/usr/local/nginx/conf/cert"
};

+ 21
- 0
www/yanxue.js Wyświetl plik

@@ -0,0 +1,21 @@
var thinkjs = require('thinkjs');
var path = require('path');

var rootPath = path.dirname(__dirname);

var instance = new thinkjs({
APP_PATH: rootPath + path.sep + 'app',
RUNTIME_PATH: rootPath + path.sep + 'runtime',
ROOT_PATH: rootPath,
RESOURCE_PATH: __dirname,
env: 'yanxue'
});

// Build code from src to app directory.
instance.compile({
log: true,
presets: [],
plugins: []
});

instance.run();

Ładowanie…
Anuluj
Zapisz