Search code examples
hyperledgerhyperledger-composer

How to change Listening port of Hyper Ledger Composer Playground?


I need to change hyper ledger composer playground listening port.

On the documentation shows how install Hyperledger Playground locally, but not how to start, stop and change listening port.


Solution

  • There are 2 ways to change the port, either using the -p option for example

    composer-playground -p 9090
    

    or you can export an environment variable

    $ export PORT=9090
    $ composer-playground