Files
flipper/desktop/flipper-server
Lorenzo Blasa 4704c177ec Check if server is already listening
Summary:
Right now, this simply avoids trying to create a server instance if one appears to be already running.

In a future change, we may decide to kill the existing instance and replace it with a new one.

But, in this case, running this as is will be useful as it will provide the connection URL with the auth token.

Also remove flipper server dependency from finding installation. In this case, we don't need it and can use `os.getPlatform()` instead.

Reviewed By: antonk52

Differential Revision: D46144843

fbshipit-source-id: 2922843b916d37e0126e43ae65a622f87a6920ec
2023-05-24 06:50:05 -07:00
..
2023-05-24 06:50:05 -07:00
2023-01-25 04:35:09 -08: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