Accessing Meteor production database

前端 未结 3 575
说谎
说谎 2020-12-12 13:20

To check out what\'s in the (production) database for blah.meteor.com I thought we would just do:

meteor mongo --url http://blah.meteor.com/
         


        
3条回答
  •  自闭症患者
    2020-12-12 13:29

    UPDATE 2016:

    The meteor mongo command is not working anymore because the blah.meteor.com database is version 3.0 while the meteor mongo command is still at version 2.6.7. (on the last version of Meteor, v1.2.1).

    Instead, install the mongo cli and run this command :

    mongo `meteor mongo --url blah.meteor.com | sed 's/mongodb:\/\//-u /' | sed 's/:/ -p /' | sed 's/@/ /'`

    More details: Accessing meteor production database in 2016

提交回复
热议问题