Meteor Up deployment, can't use meteor mongo --url

前端 未结 7 1278
-上瘾入骨i
-上瘾入骨i 2020-12-09 06:21

I\'ve recently deployed my Meteor app to a Digital Ocean droplet running Ubuntu 14.04 x32. I used Meteor Up with this mup.json file:



        
7条回答
  •  眼角桃花
    2020-12-09 06:28

    It's because you did not set the MONGO_URL in the "env" object.

    // Configure environment
    "env": {
        "PORT": 58090, # Your application port
        "ROOT_URL": "http://localhost/",
        "MONGO_URL": "mongodb://username:password@127.0.0.1:27017/myDatabase",
        "METEOR_ENV": "production"  # If you need to separate your local environment from production
    },
    

    Then, just run mup deploy.

提交回复
热议问题