-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add website node modules install step to bonnie setup
#97
Conversation
Wouldn't it be better to just add this command to the |
bonnie setup
Since the addition of user@debian:~/perseus$ bonnie setup
Compiling perseus-cli v0.3.0 (/home/user/perseus/packages/perseus-cli)
Finished dev [unoptimized + debuginfo] target(s) in 2.73s
up to date, audited 132 packages in 711ms
17 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
node:assert:123
throw new AssertionError(obj);
^
AssertionError [ERR_ASSERTION]: [concurrently] no commands provided
at module.exports (/home/user/.nvm/versions/node/v16.13.1/lib/node_modules/concurrently/src/concurrently.js:26:12)
at exports (/home/user/.nvm/versions/node/v16.13.1/lib/node_modules/concurrently/index.js:23:12)
at Object.<anonymous> (/home/user/.nvm/versions/node/v16.13.1/lib/node_modules/concurrently/bin/concurrently.js:163:1)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: 0,
expected: 0,
operator: 'notStrictEqual'
}
^C
user@debian:~/perseus$ ^C^C
user@debian:~/perseus$ bonnie site
[2] [Browsersync] Access URLs:
[2] ----------------------------------
[2] Local: http://localhost:8080
[2] External: http://10.0.0.10:8080
[2] ----------------------------------
[2] UI: http://localhost:3001
[2] UI External: http://localhost:3001
[2] ----------------------------------
[2] [Browsersync] Serving files from: .perseus/dist/exported
[2] [Browsersync] Watching files...
[1]
[1] Rebuilding...
[1] Done in 413ms.
[2] node:internal/errors:464
[2] ErrorCaptureStackTrace(err);
[2] ^
[2]
[2] Error: ENOSPC: System limit for number of file watchers reached, watch '/home/user/perseus/website/.perseus/dist/static/en-US-docs%2Fadvanced%2Fsubsequent-loads.html'
[2] at FSWatcher.<computed> (node:internal/fs/watchers:244:19)
[2] at Object.watch (node:fs:2247:34)
[2] at createFsWatchInstance (/home/user/.nvm/versions/node/v16.13.1/lib/node_modules/browser-sync/node_modules/chokidar/lib/nodefs-handler.js:119:15)
[2] at setFsWatchListener (/home/user/.nvm/versions/node/v16.13.1/lib/node_modules/browser-sync/node_modules/chokidar/lib/nodefs-handler.js:166:15)
[2] at NodeFsHandler._watchWithNodeFs (/home/user/.nvm/versions/node/v16.13.1/lib/node_modules/browser-sync/node_modules/chokidar/lib/nodefs-handler.js:331:14)
[2] at NodeFsHandler._handleFile (/home/user/.nvm/versions/node/v16.13.1/lib/node_modules/browser-sync/node_modules/chokidar/lib/nodefs-handler.js:395:23)
[2] at NodeFsHandler._addToNodeFs (/home/user/.nvm/versions/node/v16.13.1/lib/node_modules/browser-sync/node_modules/chokidar/lib/nodefs-handler.js:629:21)
[2] Emitted 'error' event on FSWatcher instance at:
[2] at FSWatcher._handleError (/home/user/.nvm/versions/node/v16.13.1/lib/node_modules/browser-sync/node_modules/chokidar/index.js:647:10)
[2] at NodeFsHandler._addToNodeFs (/home/user/.nvm/versions/node/v16.13.1/lib/node_modules/browser-sync/node_modules/chokidar/lib/nodefs-handler.js:637:18) {
[2] errno: -28,
[2] syscall: 'watch',
[2] code: 'ENOSPC',
[2] path: '/home/user/perseus/website/.perseus/dist/static/en-US-docs%2Fadvanced%2Fsubsequent-loads.html',
[2] filename: '/home/user/perseus/website/.perseus/dist/static/en-US-docs%2Fadvanced%2Fsubsequent-loads.html'
[2] }
[2] bonnie site serve exited with code 1
^C
user@debian:~/perseus$ [0] bonnie site export exited with code SIGINT
[1] bonnie site build-tailwind exited with code SIGINT
^C^C
user@debian:~/perseus$ rustup target add wasm32-unknown-unknown
info: component 'rust-std' for target 'wasm32-unknown-unknown' is up to date
user@debian:~/perseus$ bonnie setup
Compiling perseus-cli v0.3.0 (/home/user/perseus/packages/perseus-cli)
Finished dev [unoptimized + debuginfo] target(s) in 2.73s
up to date, audited 132 packages in 681ms
17 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
node:assert:123
throw new AssertionError(obj);
^
AssertionError [ERR_ASSERTION]: [concurrently] no commands provided
at module.exports (/home/user/.nvm/versions/node/v16.13.1/lib/node_modules/concurrently/src/concurrently.js:26:12)
at exports (/home/user/.nvm/versions/node/v16.13.1/lib/node_modules/concurrently/index.js:23:12)
at Object.<anonymous> (/home/user/.nvm/versions/node/v16.13.1/lib/node_modules/concurrently/bin/concurrently.js:163:1)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: 0,
expected: 0,
operator: 'notStrictEqual'
}
^C
user@debian:~/perseus$ ^C^C
user@debian:~/perseus$ bonnie site
[0] entr: Unable to allocate memory for kernel queue. Please consult http://eradman.com/entrproject/limits.html
[0] bonnie site export exited with code 1
[2] [Browsersync] Access URLs:
[2] ----------------------------------
[2] Local: http://localhost:8080
[2] External: http://10.0.0.10:8080
[2] ----------------------------------
[2] UI: http://localhost:3001
[2] UI External: http://localhost:3001
[2] ----------------------------------
[2] [Browsersync] Serving files from: .perseus/dist/exported
[2] [Browsersync] Watching files...
[1]
[1] Rebuilding...
[1] Done in 433ms.
^C
user@debian:~/perseus$ [2] bonnie site serve exited with code SIGINT
[1] bonnie site build-tailwind exited with code SIGINT
^C^C
user@debian:~/perseus$ cat /proc/sys/fs/inotify/max_user_watches
8192 Also, I think all steps bellow (debian related) are prereqs to make the website run, but not documented at all. rustup target add wasm32-unknown-unknown
cargo install wasm-pack
cargo install perseus-cli
sudo apt-get install entr |
I think you need to increase the file watcher limits on your system, which I did for mine a long time ago and now cannot remember how to do! A quick search will hopefully solve this. Also, you're absolutely right on that other documentation since the changes to the way the website works after the size optimizations plugin was added. |
I think this might work. |
I've increased the amount of file watcher limit, but the problem with user@debian:~/perseus$ cat /proc/sys/fs/inotify/max_user_watches
524288 |
Can you run the command defined in |
Running the three commands of user@debian:~/perseus$ bonnie site export
[1/2] 📦 Exporting your app's pages...✅
[2/2] 🏗️ Building your app to Wasm...✅
bash returned exit code 0
^C
user@debian:~/perseus$ bonnie site build-tailwind
Rebuilding...
Done in 426ms.
^C
user@debian:~/perseus$ bonnie site serve
[Browsersync] Access URLs:
----------------------------------
Local: http://localhost:8080
External: http://10.0.0.10:8080
----------------------------------
UI: http://localhost:3001
UI External: http://localhost:3001
----------------------------------
[Browsersync] Serving files from: .perseus/dist/exported
[Browsersync] Watching files... At least now I can see I have to fix the docs. Dockerfiles don't look like code. |
No problem, just fixed those in |
Oh, me too, almost at the same minute, but differently |
Btw, I think this PR is good to merge, but it's your call @arctic-hen7, heh. As noted above, there are a few setup steps missing in the docs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, good to merge!
Btw, in future, do you think you could sign your commits with GPG? Just makes things a little cleaner. |
Ok, I'll try to keep that in mind for the next time. Thank you, @arctic-hen7. |
Without the
npm i --prefix ./website
step prior tobonnie site run
an error as bellow is thrown and styles on the website are all out of place.