Home > Web Front-end > JS Tutorial > Bunjs with PM2

Bunjs with PM2

DDD
Release: 2024-09-18 20:22:30
Original
547 people have browsed it

Bunjs with PM2

Motivation

I am using Bunjs for the backend for my Multiplayer naval game, Sunbaked.

Now, I wanted to have my server auto-restart when a server breaking error is thrown. I read through the official guide on how to use PM2 with Bunjs but found that it missed one small piece of info...

$ bun install -g pm2

Article done

That's it, don't install pm2 using npm, you'll end up with way more problems than you need.

You then run $ pm2 start --interpreter ~/.bun/bin/bun index.ts and you are good to go.

The above is the detailed content of Bunjs with PM2. For more information, please follow other related articles on the PHP Chinese website!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template