1 Star 0 Fork 0

datamidplatform/Rocket.Chat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
example-build-run.sh 778 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
set -x
set -euvo pipefail
IFS=$'\n\t'
# Requires Node.js version 4.x
# Do not run as root
DEPLOY_DIR=/var/www/rocket.chat
### BUILD
meteor npm install
meteor npm run postinstall
# on the very first build, meteor build command should fail due to a bug on emojione package (related to phantomjs installation)
# the command below forces the error to happen before build command (not needed on subsequent builds)
set +e
meteor add rocketchat:lib
set -e
meteor build --server-only --directory $DEPLOY_DIR
### RUN
cd $DEPLOY_DIR/bundle/programs/server
npm install
cd $DEPLOY_DIR/bundle
NODE_ENV=production \
PORT=3000 \
ROOT_URL=http://localhost:3000 \
MONGO_URL=mongodb://localhost:27017/rocketchat \
MONGO_OPLOG_URL=mongodb://localhost:27017/local \
node main.js
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/wenchunsz/Rocket.Chat.git
git@gitee.com:wenchunsz/Rocket.Chat.git
wenchunsz
Rocket.Chat
Rocket.Chat
develop

搜索帮助

0d507c66 1850385 C8b1a773 1850385