Meteor public folder not working

meteor

Solution

The setup you have described sounds correct to me. Media in `public/` are served like

http://localhost:3000/myphoto.jpg

The todos example serves images from the public directory. Just back out of whatever project you're in and run: `meteor create --example todos` then cd into todos/ and run `meteor`. Then open:

http://localhost:3000/destroy.png 

The image you will see lives in `public/`.

Problem

I'm new to Meteor and I'm trying to understand how to serve static content - images, JS, etc.. I've followed the docs by creating the correct folder structure (which it doesn't really touch on) but making requests to this content just fails over to serving the main app page instead. For instance - putting an image in "app_root"/public/image.png and making a request to localhost:3000/image.png just returns the main app page. Any clue what I'm doing wrong here? Thanks!

Original source