I have two different meteor apps. app1 running on 3000 and app2 running on 3002. So my question is both app1 and app2 should use same Database. I tried connecting app2 with "export MONGO_URL=mongodb://localhost:3001/app1" but went fruitless.
How would I be able to accomplish this?
创建的标准数据库流星称为流星,所以我认为您应该使用以下命令启动第二个流星实例:
MONGO_URL=mongodb://localhost:3001/meteor meteor -p 3002
On Windows 10:
Result: App-1 running at localhost 3000 App-2 running at localhost 3500
App-1 & App2 using same local mongodb at mongodb://127.0.0.1:3001
Have Fun
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.