Files
flipper/desktop/flipper-server
Lorenzo Blasa bc77dcf326 Simplify shutdown logic
Summary:
The previous logic aimed to reuse an existing server during bootstrap if the launched version was higher than the running one. This is no longer required or wanted.

## Risk assessment: LOW
### Rationale
It is extremely rare to launch Flipper whilst already having another instance running. This can happen during development, but it is extremely rare in production.

Launcher (singleton) launches Server (singleton).
Launcher can be executed multiple times and this will not create newer server instances.

If anything, if we are unable to kill any other instance, whatever that may be, continue. This is to cover the cases where a shutdown may have been acknowledged but the process is still shutting down.

Reviewed By: antonk52

Differential Revision: D51232901

fbshipit-source-id: 8b8b85f4bac68f5670b1878e827871f78dc68999
2023-11-13 12:51:45 -08:00
..
2023-11-13 12:51:45 -08:00
2023-08-21 03:03:30 -07:00
2023-08-29 05:06:18 -07:00

flipper-server (TBD)

Stand alone Flipper server as NodeJS process, that uses flipper-server-core for device communication and also provides a webserver to serve flipper-ui.

Flipper-server can be used as background process, for example on CI servers or to power IDE plugins.

Running flipper server

From NPM

TODO:

From source

cd <Flipper checkout>/desktop
yarn install
yarn flipper-server

Production build from source

cd <Flipper checkout>/desktop
yarn install
yarn build:flipper-server

Pass the --open flag to open Flipper server after building

Use --no-rebuild-plugins to speed up subsequent builds if default plugins have been build already