Meteor app: images not loading
I am making a simple chat application with a meteor. My HTML:
<body> <h1 align="center">tomomi-chat</h1> <img src="original.gif"> <div class="container" align="center"> {{>entryfield}} </div> <br> <div class="container"> {{>messages}} </div> Image does not upload to local server. Since the application is extremely simplified, there are no folders in the directory except the ".meteor" folder. The .js, .css and .html files are located in the application directory.
Even if I post the image and use the external link, the result will be the same. Why is a meteor blocking images from my application?
deployed: http://tomomi.meteor.com/
You need to create a folder called public in the root folder of the application.
From the meteorite documentation :
/ public
Files in / public are served to the client as is. Use this to store assets such as images. For example, if you have an image located in /public/background.png, you can include it in your HTML with or in your CSS with a background image: URL (/background.png). Note that / public is not part of the image URL.
