我尝试更改meteor的默认端口,但我没有得到它:
$ PORT='3510' meteor run --settings settings.json
[[[[[ ~/meteor/dorj ]]]]]
=> Started proxy.
=> A patch (Meteor 1.4.1.3) for your current release is available!
Update this project now with 'meteor update --patch'.
=> Started MongoDB.
=> Started your app.
=> App running at: http://localhost:3000/
settings.json为:
{
"smtp" : { "username" : "xxx" ,
"password" : "xxx" ,
"server" : "smtp.googlemail.com" ,
"port" : 465 },
"galaxy.meteor.com": {
"env" : {
"MONGO_URL" : "xxxx",
"MAIL_URL: "xxx"
}
}
,
"private" : {"port" : 3510 }
,
"port" : 3510
}
我不使用galaxy,因为我在自己的私人ubuntu服务器上。
编辑
问:
$run --port 3003 --settings settings.json
[[[[[ ~/meteor/dorj ]]]]]
=> Started proxy.
=> A patch (Meteor 1.4.1.3) for your current release is available!
Update this project now with 'meteor update --patch'.
Starting your app |
让“启动你的应用”永远运行:(“
答案 0 :(得分:1)
您可以试试这个并检查端口是否有效吗?
meteor --port 8080
如果成功
meteor --port 8080 --settings settings.json