g0v / moedict-data-twblg

臺灣閩南語常用詞辭典 資料檔
76 stars 28 forks source link

building everything on a fresh install #3

Closed a-tsioh closed 10 years ago

a-tsioh commented 10 years ago

Once everything seems fine with postgresql and pgrest install, when running make pgrest and make import,

I get this warning on the pgrest server-side:

$ make pgrest dropdb twblg createdb twblg pgrest --db twblg info: Available collections:

info: Serving twblg on http://127.0.0.1:3000/collections Warning: connect-csv header: 'function (name){ switch (name = name.toLowerCase()) { case 'referer': case 'referrer': return this.headers.referrer || this.headers.referer; default: return this.headers[name]; } }' not in strict,guess,present,absent, defaulting to strict

and this error on this import :

$ make import curl -i -H "Content-Type: text/csv" -X POST --data-binary @x-造字.csv http://127.0.0.1:3000/collections/pua -o /dev/null % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 851 0 0 100 851 0 7 0:02:01 0:02:00 0:00:01 0 curl: (52) Empty reply from server make: *\ [import] Erreur 52

audreyt commented 10 years ago

Fixed in pgrest 0.1.3 and in 9ce178db2.

Please pull twblg and reinstall pgrest and make pgrest + make import should work.