Giter VIP home page Giter VIP logo

Comments (5)

bajtos avatar bajtos commented on August 19, 2024

Hello, thank you for reporting this issue. Is it possible that your application is allocating resources running in background (e.g. a connection pool used by a database driver behind a LoopBack datasource) that's blocking the process from exiting? You can verify this assumption by running the following command in your application/project directory:

node -e "require('./')"

If the command hangs, then it's your application what's blocking lb export-api-def from exiting. This can be fixed e.g. by modifying lb export-api-def to explicitly kill the process once the spec file was written - would you like to contribute the fix yourself?

from loopback-cli.

Overdrivr avatar Overdrivr commented on August 19, 2024

Thanks for the feedback, I understand now why I was seeing a hanging redis connection when running the lb export-api-def command with all debug strings enabled :) (I have a few bits of redis code inside my server)

No problem for making the fix, I'll submit a PR

from loopback-cli.

Overdrivr avatar Overdrivr commented on August 19, 2024

I've made a PR, but I'm not sure how to test this feature. More specifically, how to generate a app that never finishes loading using the template from loopback-workspace. Let me know if you have something obvious in mind.

from loopback-cli.

stale avatar stale commented on August 19, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from loopback-cli.

bajtos avatar bajtos commented on August 19, 2024

Closing as fixed by strongloop/generator-loopback#316

from loopback-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.