DigitalOcean上的Meteor Up Setup错误

时间:2016-12-10 20:49:00

标签: meteor

我正在尝试通过其IP地址(我没有域名)将Meteor应用程序部署到DigitalOcean Droplet上。我第一次做这种事情,并且遇到很多问题。

这是我在数字海洋上的一滴:

Digital Ocean droplet

我使用mup init在Meteor应用程序的仓库外创建了一个MUP (Meteor Up)目录,这是我拥有的mup.js文件:

module.exports = {
    servers: {
        one: {
            host: 'http://162.243.57.207',
            username: 'cs673f16',
            pem: '/Users/gautambhat/.ssh/id_rsa'
            // password:
            // or leave blank for authenticate from ssh-agent
        }
    },

    meteor: {
        name: 'meetcute',
        path: '/Users/gautambhat/Repos/CS673_team2',
        servers: {
            one: {}
        },
        buildOptions: {
        serverOnly: true,
        },
        env: {
            ROOT_URL: 'http://162.243.57.207',
            PORT : 3000
            //MONGO_URL: 'mongodb://localhost/meteor'
        },

        //dockerImage: 'kadirahq/meteord'
        deployCheckWaitTime: 60
    },

    mongo: {
        oplog: true,
        port: 27017,
        servers: {
            one: {},
        },
    },
};

另外,我不知道我的MONGO_URL,或者在哪里找到它,所以我只是评论了它。运行mup setup时,出现以下错误:

Started TaskList: Setup Docker
[http://162.243.57.207] - setup docker
Error getaddrinfo ENOTFOUND http://162.243.57.207 http://162.243.57.207:22

有人能指出我正确的方向吗?

1 个答案:

答案 0 :(得分:2)

错误 - as described in your original post - 如下:

Started TaskList: Setup Docker
[http://162.243.57.207] - setup docker
Error getaddrinfo ENOTFOUND http://162.243.57.207 http://162.243.57.207:22

错误基本上意味着找不到主机http://162.243.57.207。那么让我们看一下配置的`服务器部分:

servers: {
    one: {
        host: 'http://162.243.57.207',
        username: 'cs673f16',
        pem: '/Users/gautambhat/.ssh/id_rsa'
        // password:
        // or leave blank for authenticate from ssh-agent
    }
},

您的host设置是一个URL,它应该是主机名或IP地址;意思是host: 'http://162.243.57.207'应该是162.243.57.207。所以改变它并再试一次:

servers: {
    one: {
        host: '162.243.57.207',
        username: 'cs673f16',
        pem: '/Users/gautambhat/.ssh/id_rsa'
        // password:
        // or leave blank for authenticate from ssh-agent
    }
},