Comment démarrer Meteor sur un port différent
Par défaut, l'application Meteor démarre sur le port 3000
$ meteor [[path-to/meteor/hello ]]]]] => Started proxy. => Started MongoDB. => Started your app. => App running at: http://localhost:3000/
1. Port Meteor 9999
Pour démarrer l'application Meteor sur un autre port, démarrez Meteor avec le paramètre--port
.
$ meteor --port 9999 [[path-to/meteor/app ]]]]] => Started proxy. => Started MongoDB. => Started your app. => App running at: http://localhost:9999/
2. Port Meteor 80
Pour un port inférieur à 1024, il fautsudo
$ meteor --port 80 Error: listen EACCES $ sudo meteor --port 80 [[path-to/meteor/app ]]]]] => Started proxy. => Started MongoDB. => Started your app. => App running at: http://localhost:80/
Note
Pour le déploiement en production, mieux utiliserMeteor Up ou démarrer une application Meteor sur un autre port et configurer un proxy inverse sur le serveur Web.