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

前端 未结 7 1282
-上瘾入骨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:46

    All I did was add the IP of my Digital ocean droplet server, instead of localhost, and it worked:

    env: {
          ROOT_URL: 'http://yourdomain.com',
          MONGO_URL: 'mongodb://104.236.24.66:27017/meteor',
          PORT: 3002,
        },
    

    Using this mongo instance in docker for 2 meteor apps currently.

    EDIT: This depends on how your firewall is setup. Check with "ufw status". Also depends on how your mongo is deployed (which ports forwarded to where; ex) 0.0.0.0:27017->27017 ).

提交回复
热议问题