mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
added node.js dependencies
This commit is contained in:
@@ -14,4 +14,9 @@ ln -s $HOME/.nvm/versions/node/v8.12.0/bin/node /usr/local/bin/node
|
||||
|
||||
# environments manipulation
|
||||
export NODE_PATH=$HOME.nvm/versions/node/v8.12.0/lib/node_modules
|
||||
export PATH=$NODE_PATH:$PATH
|
||||
export PATH=$NODE_PATH:$PATH
|
||||
|
||||
# install default dependencies
|
||||
npm config set PUPPETEER_DOWNLOAD_HOST=https://npm.taobao.org/mirrors
|
||||
npm install puppeteer -g --unsafe-perm=true
|
||||
npm install puppeteer-core puppeteer-chromium-resolver crawlab-sdk -g --ignore-scripts
|
||||
|
||||
@@ -30,6 +30,7 @@ services:
|
||||
# CRAWLAB_NOTIFICATION_MAIL_SENDERIDENTITY: admin@exmaple.com # sender ID 发送者 ID
|
||||
# CRAWLAB_NOTIFICATION_MAIL_SMTP_USER: username # SMTP username SMTP 用户名
|
||||
# CRAWLAB_NOTIFICATION_MAIL_SMTP_PASSWORD: password # SMTP password SMTP 密码
|
||||
# CRAWLAB_SERVER_LANG_NODE: "Y" # 预安装 Node.js 语言环境
|
||||
ports:
|
||||
- "8080:8080" # frontend port mapping 前端端口映射
|
||||
depends_on:
|
||||
|
||||
@@ -42,6 +42,8 @@ export default {
|
||||
mode: this.language,
|
||||
theme: 'darcula',
|
||||
styleActiveLine: true,
|
||||
smartIndent: true,
|
||||
indentUnit: 4,
|
||||
lineNumbers: true,
|
||||
line: true,
|
||||
matchBrackets: true
|
||||
|
||||
Reference in New Issue
Block a user