21 Nov 2013, 3:46pm
meteor:

leave a comment




  • Anzeige
  • Mongo fails when starting meteor

    If your are see­ing this one when start­ing meteor:
    Unexpected mongo exit code 100. Restarting.
    Can't start mongod
    MongoDB had an unspecified uncaught exception.

    Check if mon­goDB is run­ning already, oth­er­wise, if you can find a file called .meteor/local/db/mongod.lock means that mongo did not stop prop­erly last time. Just delet­ing this lock file should fix it. It’s a bit unfor­tu­nate that the error mes­sage doesn’t give any hint in this direction.

    29 Oct 2013, 4:19pm
    meteor:

    leave a comment




  • Anzeige
  • Serving Static Files with Meteor and Spiderable

    In short: To serve files which are not part of your project’s code (i.e. which are sup­posed to be served with­out being com­piled), put them in the public folder. This folder will be served from /.

    Some more back­ground and details:
    Tried to add a web-font to my project, thus, I put it in /client/webfonts/somefont.woff. But the font didn’t show up. I tested it with wget -O- http://localhost:3000/webfonts/somefont.woff … and *sur­prise* I got the HTML of the default page — not some binary gib­ber­ish that you would expect to find in a font file.

    All file types unknown to meteor get stripped out dur­ing com­pile time. Instead you need to put them in a sep­a­rate folder called public — in my case in /public/webfonts/somefont.woff. Rookie mis­take I guess. :)