MongoDB / Meteor / Export MONGO_URL to deployed applications

后端 未结 5 1494
忘了有多久
忘了有多久 2020-12-09 13:48

I tried to export a settings.json as documented in the meteor.js documentation in order to connect my Meteor.js app with an external MongoHQ database :

{
            


        
5条回答
  •  [愿得一人]
    2020-12-09 14:04

    You are not able to use your own MONGO_URL with Meteor deploy hosting.

    Meteor deploy hosting takes care of the Email with Mailgun (if you use it), and provides mongodb for all apps deployed there.

    It is possible to change the MAIL_URL, but it is not possible to use a different mongodb.

    You can try, though im not sure it will work:

    Place this in your server side code somewhere

    process.env.MONGO_URL = '..';
    

提交回复
热议问题