与连接mongolab服务器的流星

时间:2015-08-08 13:21:15

标签: mongodb meteor mlab database

连接字符串:

To connect using the shell:
mongo ds031183.mongolab.com:31183/mara -u <dbuser> -p <dbpassword>
To connect using a driver via the standard URI (what's this?):
mongodb://<dbuser>:<dbpassword>@ds031183.mongolab.com:31183/mara

如何在流星中连接远程数据库?

1 个答案:

答案 0 :(得分:0)

启动meteor时添加MONGO_URL环境变量

$ MONGO_URL=mongodb://<dbuser>:<dbpassword>@ds031183.mongolab.com:31183/mara meteor