GoodDollar / GoodServer

Backend to support the GoodDAPP
MIT License
13 stars 12 forks source link

Deployment issue: Your slug size (405 MB) exceeds our soft limit (300 MB) which may affect boot time. #457

Closed johnsmith-gooddollar closed 4 months ago

johnsmith-gooddollar commented 4 months ago

This causes app to load slowly and don't pass 30 sec timeout for start listening the port

  1. Is there a way to raise this timeout ?
  2. Try to shrink the "slug" (whole app archived with the node modules). a) to check up which packages do we need which don't and b) try to move some packages to devDeps. c) try https://github.com/heroku/heroku-repo?tab=readme-ov-file#gc d) try .slugignore https://devcenter.heroku.com/articles/slug-compiler#ignoring-files-with-slugignore
johnsmith-gooddollar commented 4 months ago

The latest one working commit (without veramo) already have 288MB, so we're already "on the edge" so the issue should we solved. We would meet with it anyway in the near future even if didn't added veramo right now

johnsmith-gooddollar commented 4 months ago

@sirpy after my fix https://github.com/GoodDollar/GoodServer/commit/330e2d424926a297d0cd42ca8b936d2454490706 the slug size is 400MB again (

sirpy commented 4 months ago

@johnsmith-gooddollar i've changed webpack to not use nodeexternals for production, now it creates a single file and we can delete node_modules. slug size is now 50mb on dev server please verify that the credential endpoints are working as expected (ie the dynamic imports)

sirpy commented 4 months ago

solved by using compile to single file