electionsutah / website

Elections Utah is an ongoing, community-driven open data project tracking Utah’s elections.
https://www.electionsutah.org
Creative Commons Zero v1.0 Universal
6 stars 3 forks source link

No search results showing up on live site #32

Open todrobbins opened 7 years ago

todrobbins commented 7 years ago

Search results populate in local dev but not on the live site. Here's the local view:

screen shot 2017-08-08 at 10 50 55 am

Besides getting the results to show, I need help making the results more useful (summary text, people showing in the results). I'm using lunr.js for search.

misbach commented 6 years ago

Can you update the readme with instructions on how to get a local dev environment setup?

todrobbins commented 6 years ago

@misbach Yessir!

todrobbins commented 6 years ago

@misbach the README now has instructions!

misbach commented 6 years ago

@todrobbins thanks! I've got it up and running.

misbach commented 6 years ago

It looks like the problem is that index.json isn't on your server (http://www.electionsutah.org/js/index.json). Should it belong in the /js folder?

Also, how do you deploy this to your production server?

todrobbins commented 6 years ago

The site is deployed via GitHub Pages. I'm not sure why the index.json is not being produced/added.

todrobbins commented 4 years ago

I've since removed the lunr.js plugin. Will look at other options soon.