fix config lack

This commit is contained in:
yi-ge 2019-06-09 01:53:33 +08:00
parent 7dcf0a598e
commit c6c1e6bf09
3 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "electron-distribution",
"version": "1.0.1",
"version": "1.0.2",
"description": "Electron Distribution",
"author": "yi-ge <a@wyr.me>",
"scripts": {

View File

@ -12,7 +12,7 @@ import websocket from './websocket'
import DockerOde from 'dockerode'
import fs from 'fs'
;(async () => {
;(async () => {
const socketPath = SYSTEM.DOCKER_SOCKET
const stats = fs.statSync(socketPath)

View File

@ -20,6 +20,8 @@ export const SYSTEM = {
LINUX_SERVER_HOST: process.env.LINUX_SERVER_HOST || '127.0.0.1',
LINUX_SERVER_PORT: process.env.LINUX_SERVER_PORT || '22',
LINUX_SERVER_USERNAME: process.env.LINUX_SERVER_USERNAME || 'root',
BUILD_CPU_LIMIT: process.env.BUILD_CPU_LIMIT || '0',
BUILD_MEMORY_LIMIT: process.env.BUILD_MEMORY_LIMIT || 0,
OBJECT_STORAGE_TYPE: process.env.OBJECT_STORAGE_TYPE || 'cos'
}