Philip Johnson
Philip Johnson

Reputation: 1565

Cannot find file in public/ directory (Meteor 1.2?)

I am writing a Meteor application template to illustrate various elementary features and am not able to serve a file from the public/ directory:

enter image description here

Yet this file exists in the public/images directory.

What am I doing wrong?

Upvotes: 2

Views: 166

Answers (2)

Philip Johnson
Philip Johnson

Reputation: 1565

Fixed. The problem was that the .meteor directory was not in the app/ directory, but in the directory above it.

This didn't cause any problems until trying to retrieve a static asset.

Upvotes: 0

Philip Johnson
Philip Johnson

Reputation: 1565

OK, I really hate to say this, but all of a sudden, it just started to work. The fact that others have run my app and encountered the same issue makes this even stranger.

The repo's README now illustrates the appropriate behavior where the image is successfully displayed on the home page using:

<img style="float:left" width="240px" class="img-circle" src="/images/meteor-logo.png" />

I am at a loss to explain this.

Upvotes: 1

Related Questions