1 Star 1 Fork 1

tomorrowsj/botfront-for-rasa3

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
entrypoint.sh 685 Bytes
一键复制 编辑 原始数据 按行查看 历史
Panda.JD 提交于 2022-09-20 10:34 . Submit the changes
#!/bin/bash
set -o errexit
cd /docker
# Poll until we can successfully connect to MongoDB
echo 'Connecting to MongoDB...'
#node <<- 'EOJS'
#require('p-wait-for')(function() {
# return new Promise(function (resolve, reject) {
# require('mongodb').MongoClient.connect(process.env.MONGO_URL, function(err, client) {
# const successfullyConnected = err == null;
# if (successfullyConnected) {
# client.close();
# process.exit(0);
# } else {
# if(client) {
# client.close();
# }
# resolve(false);
# return;
# }
# resolve(successfullyConnected);
# });
# });
#}, 10000);
#EOJS
node waitmongo.mjs
echo 'Starting app...'
cd /opt/bundle/bundle
exec "$@"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tomorrowsj/botfront-for-rasa3.git
git@gitee.com:tomorrowsj/botfront-for-rasa3.git
tomorrowsj
botfront-for-rasa3
botfront-for-rasa3
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385