plentico / plenti

Static Site Generator with Go backend and Svelte frontend
https://plenti.co
Apache License 2.0
1k stars 49 forks source link

Can't serve site on Mac #8

Closed stephanieluz closed 4 years ago

stephanieluz commented 4 years ago
``` plenti serve Creating "public" build directory Temp writing '/build.js' file. Temp writing '/main.js' file. Temp writing '/router.svelte' file. Creating non-ejected core files for build took 603.266µs Gathering data source from "content/" folder Number of content files used: 6 Creating data_source took 1.614468ms Prepping client SPA for svelte compiler Number of source files copied: 1 Number of components to be compiled: 12 Prepping client SPA data took 1.003576ms Compiling components and creating static HTML took 424.775935ms Running gopack to build esm support for: - navaid, version ^1.0.5 - regexparam, version ^1.3.0 - svelte, version ^3.21.0 Gopack took 28.402194ms Removing temp file 'layout/ejected/build.js' Removing temp file 'layout/ejected/main.js' Removing temp file 'layout/ejected/router.svelte' Removing the ejected directory. Cleaning up non-ejected core files took 325.16µs Total build took 457.058828ms Serving site from your "public" directory. Visit your site at http://localhost:3000/ ERROR open node_modules/svelte/types/compiler/parse/utils: too many open files Unable to read site config file: unexpected end of JSON input Removing old "public" build directory open .: too many open files Unable to read site config file: unexpected end of JSON input Removing old "public" build directory open .: too many open files Unable to read site config file: unexpected end of JSON input Removing old "public" build directory open .: too many open files Unable to read site config file: unexpected end of JSON input Removing old "public" build directory open .: too many open files 2020/05/05 14:34:37 http: Accept error: accept tcp [::]:3000: accept: too many open files; retrying in 5ms 2020/05/05 14:34:37 http: Accept error: accept tcp [::]:3000: accept: too many open files; retrying in 10ms 2020/05/05 14:34:37 http: Accept error: accept tcp [::]:3000: accept: too many open files; retrying in 20ms 2020/05/05 14:34:37 http: Accept error: accept tcp [::]:3000: accept: too many open files; retrying in 40ms Unable to read site config file: unexpected end of JSON input Removing old "public" build directory open .: too many open files Unable to read site config file: unexpected end of JSON input Removing old "public" build directory open .: too many open files Unable to read site config file: unexpected end of JSON input Removing old "public" build directory open .: too many open files Unable to read site config file: unexpected end of JSON input Removing old "public" build directory open .: too many open files Unable to read site config file: unexpected end of JSON input Removing old "public" build directory open .: too many open files 2020/05/05 14:34:42 http: Accept error: accept tcp [::]:3000: accept: too many open files; retrying in 80ms 2020/05/05 14:34:42 http: Accept error: accept tcp [::]:3000: accept: too many open files; retrying in 160ms Unable to read site config file: unexpected end of JSON input Removing old "public" build directory open .: too many open files 2020/05/05 14:34:42 http: Accept error: accept tcp [::]:3000: accept: too many open files; retrying in 320ms Unable to read site config file: unexpected end of JSON input Removing old "public" build directory open .: too many open files Unable to read site config file: unexpected end of JSON input Removing old "public" build directory open .: too many open files ^C ```
stephanieluz commented 4 years ago

Seems to be related to FSEvents: https://github.com/fsnotify/fsnotify/issues/11