I am unable to change port of composer-rest-server Please help

+1 vote

I want to change the port of the composer-rest-server and I'm using the -p flag but the terminal says that I am missing a parameter-

Input:

composer-rest-server -p 8919

Output:

Missing parameter. Please run composer-rest-server -h to see usage details 

And when I type the -h flag:

-p, --port          The port to serve the REST API on  [number]

So, how do I run the composer-rest-server on a different port from 3000?

Mar 27, 2018 in Blockchain by Perry
• 17,100 points

edited Mar 27, 2018 by Perry • 2,826 views

1 answer to this question.

+1 vote
Best answer

Use full format for running a business network in a different port using this:

composer-rest-server -c admin@sample-network -p 8919

or you can add more parameter like authentication, multiple user support etc

composer-rest-server -c admin@sample-network -p 8919 -a false -m true

Know all parameters meaning by using this command

 composer-rest-server --help
answered Mar 27, 2018 by Christine
• 15,750 points

selected Aug 3, 2018 by Omkar

Related Questions In Blockchain

+4 votes
2 answers

I am unable to connect Ganache with Truffle/Npm Dev server. Pls help.

The issue is at CurrentProvider. Give the url ...READ MORE

answered Mar 26, 2018 in Blockchain by Perry
• 17,100 points

edited Oct 11, 2018 by Omkar • 4,667 views
0 votes
1 answer

How to extend Composer rest Server ?

 It looks like you want to query ...READ MORE

answered Sep 20, 2018 in Blockchain by Perry
• 17,100 points
• 2,287 views
0 votes
1 answer

I am not able to change array elements globally

Remove the constant modifier from getArray(). constant functions do not write state ...READ MORE

answered Oct 9, 2018 in Blockchain by Omkar
• 69,180 points
• 1,794 views