Git Product home page Git Product logo

Comments (6)

Mrgaton avatar Mrgaton commented on May 27, 2024 1

Won't be nice to make that as default?

I don't see any disadvantage of not using bun

from pm2.

ultimate-tester avatar ultimate-tester commented on May 27, 2024 1

It won't be as easy as just stating "let's make a different interpreter the default".
Here's some cons just for sake of argument:

  • Bun is still under development.
  • Bun is not as widely used as Node.js.
  • Bun does not support all Node.js APIs.
  • Bun is not as well-documented as Node.js.

So, while Node.js is still the most popular, complete and stable production-ready interpreter, in my opinion PM2 should stick with it and only start discussing about it when Node.js is surpassed in those areas.

Nothing against Bun, but you have to be realistic.

from pm2.

ultimate-tester avatar ultimate-tester commented on May 27, 2024

You want to use bun as interpreter?

pm2 start --interpreter ~/.bun/bin/bun

from pm2.

Mrgaton avatar Mrgaton commented on May 27, 2024

You want to use bun as interpreter?

pm2 start --interpreter ~/.bun/bin/bun

how i can make it permament and then how i can leave it as default?

from pm2.

ultimate-tester avatar ultimate-tester commented on May 27, 2024

Actually coming back to this, it seems that bun is the default already for typescript (bad decision if you ask me) since oct 6 2023:
135c123

That would mean that if you really want to use bun by default, either modify that file manually or use typescript extension.

from pm2.

tapz avatar tapz commented on May 27, 2024

I can't get pm2 to work with bun at all. Whatever I do pm2 always gives this error:

/usr/bin/env: 'node': No such file or directory

I have tried with command line arguments and with a configuration file. Still it seems to ignore the interpreter argument completely.

.bun/bin/pm2 start ecosystem.json
.bun/bin/pm2 start --interpreter bun index.js
.bun/bin/pm2 start --interpreter /usr/local/bin/bun index.js

ecosystem.json:

{
  "apps": [
    {
      "name": "myapp",
      "script": "index.js",
      "interpreter": "/usr/local/bin/bun",
      "instances": 1,
      "exec_mode": "fork",
      "autorestart": true,
      "watch": false,
      "error_file": "./errors.log",
      "out_file": "./myapp.log"
    }
  ]
}

from pm2.

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.