~samip537


#43 Ability to disable watching for changes in non-development environment 11 months ago

Ticket created by ~samip537 on ~cadence/bibliogram-issues

I was talking about this on Matrix, as the watching doesn't appear to work on NFS which is an issue for me and possibly others.

I believe that there should be an option to disable it for non development use cases.

$ npm run start
Starting Tor...
[ ] [042957] [CMP] Compiled sass/blue.sass
[ ] [042957] [CMP] Compiled sass/classic.sass
[ ] [042958] [CMP] Compiled sass/pussthecat.org-v2.sass
[ ] [042958] [CMP] Compiled sass/pitchblack.sass
[ ] [042958] [CMP] Compiled sass/pussthecat.org.sass
[ ] [042958] [CMP] Compiled sass/includes/_dimensions.sass
[ ] [042958] [CMP] Compiled sass/includes/_forms.sass
[ ] [042959] [CMP] Compiled sass/includes/_main.sass
[ ] [042959] [CMP] Compiled sass/themes/_blue.scss
[ ] [042959] [CMP] Compiled sass/discord.sass
[ ] [042959] [CMP] Compiled sass/themes/_classic.scss
[ ] [042959] [CMP] Compiled sass/themes/_pitchblack.scss
[ ] [042959] [CMP] Compiled sass/themes/_discord.scss
[ ] [042959] [CMP] Compiled sass/themes/_pussthecat.org-v2.scss
[ ] [042959] [CMP] Compiled sass/themes/_pussthecat.org.scss
Tor is ready, using SOCKS port 17205
node:internal/errors:464
    ErrorCaptureStackTrace(err);
    ^

Error: UNKNOWN: unknown error, watch '/var/www/9/samip537/sites/applications/bibliogram/src/site/api'
    at FSWatcher.<computed> (node:internal/fs/watchers:244:19)
    at Object.watch (node:fs:2247:34)
    at module.exports (/var/www/9/samip537/sites/applications/bibliogram/node_modules/pinski/util/watch_compiler.js:21:6)
    at Pinski.addAbsoluteAPIDir (/var/www/9/samip537/sites/applications/bibliogram/node_modules/pinski/index.js:265:15)
    at Pinski.addAPIDir (/var/www/9/samip537/sites/applications/bibliogram/node_modules/pinski/index.js:259:15)
    at /var/www/9/samip537/sites/applications/bibliogram/src/site/server.js:59:9
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  errno: -116,
  syscall: 'watch',
  code: 'UNKNOWN',
  path: '/var/www/9/samip537/sites/applications/bibliogram/src/site/api',
  filename: '/var/www/9/samip537/sites/applications/bibliogram/src/site/api'
}