codeforgermany / click_that_hood

A game where users must identify a city's neighborhoods as fast as possible
http://click-that-hood.com
MIT License
451 stars 638 forks source link

Local server error: GeoJSON file not found for '_template'. #268

Closed aido179 closed 3 years ago

aido179 commented 9 years ago

Forked, cloned, npm installed and npm started.

Error output: Initializing… GeoJSON file not found for '_TEMPLATE'. Aborting server start.

npm ERR! click_that_hood@0.0.1 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the click_that_hood@0.0.1 start script.
mwichary commented 9 years ago

Weird! That works for me. The underscore should be caught in app.js@103. If you move _TEMPLATE and _work-in-progress to their parent directory that should help, although I wonder what else will go wrong if this fails randomly…

What’s the path you’re running this from? What’s the OS/environment?

On Thu, Apr 16, 2015 at 9:00 AM, Aidan Breen notifications@github.com wrote:

Forked, cloned, npm installed and npm started.

Error output: Initializing… GeoJSON file not found for '_TEMPLATE'. Aborting server start.

npm ERR! click_that_hood@0.0.1 start: node app.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the click_that_hood@0.0.1 start script.

— Reply to this email directly or view it on GitHub https://github.com/codeforamerica/click_that_hood/issues/268.

aido179 commented 9 years ago

In the project path. Windows 8. It could possibly be \ vs /.

I managed to get it running further by editing app.js@103: if (metadataFilePath.indexOf('/') == -1 && metadataFilePath.indexOf('TEMPLATE') == -1) { Though it then fell over with denmark, so obviously the test for '/' is failing on windows as it is entering the _work-in-progress directory. I then deleted the _work-in-progress directory and it worked no problem.

specious commented 3 years ago

This was probably fixed right here: https://github.com/codeforgermany/click_that_hood/commit/bba8b8df18979445a62837dd42ab31154cb3a8a9

If this issue resurfaces, please reopen.