DEV Community

Discussion on: I'm a Meteor developer, Ask Me Anything!

Collapse
 
guidouil profile image
Guidouil ツ

Sorry for the late reply, I did not see your question...
Usually in production I don't relie on port but sub domains.
Port stays a requirent but you hide that with NginX proxying all https connection to whatever port you want/defined
On localhost you (usually) don't have subdomain or nginx setup so just start a local mongo server and start your meteor app with MONGO_URL='mongodb://127.0.0.1:27017' && meteor -p 4000
This will run the meteor app on port 4000 and won't make the meteor start a mongo :)