2013-03-24 50 views

回答

3

運行它像這樣在你的終端項目目錄內

MONGO_URL=mongodb://user:[email protected]:10061/xxxx meteor 

export MONGO_URL=mongodb://user:[email protected]:10061/xxxx 
meteor 
+0

是沒有得到它使用mongohq但其沒有任何收藏。 – Moshe 2013-03-24 20:30:28

+0

Meteor.startup(函數(){ \t \t 變種的顧客\t \t =新Meteor.Collection( 「客戶」); \t變種聯繫人\t \t \t =新Meteor.Collection( 「聯繫人」); \t \t 的console.log( 「在這裏」); \t如果(Customers.find()=== 0){ \t \t的console.log( 「沒有找到客戶」); \t \t Customers.insert({ID: Customers.find()。count()+ 1,na我:「測試客戶」}); \t}; \t console.log(「現在在這裏」); (「Contacts.find({})=== 0){ \t \t console.log(」找不到客戶「); ({id:Contacts.find()。count()+ 1,first_name:「Test」,last_name:「Contact」});}};}};}}。 \t}; \t }); – Moshe 2013-03-24 20:32:38

+0

似乎沒有工作 – Moshe 2013-03-24 20:32:54

相關問題