serverless-azure-functions icon indicating copy to clipboard operation
serverless-azure-functions copied to clipboard

How to change port when running sls offline

Open andidev opened this issue 5 years ago • 1 comments

I cant seem to change the port when running sls offline. No documentation on it either.

sls offline --httpPort 3000

does not work for azure functions but it works for aws. How am I suppose to do it?

andidev avatar Jul 30 '20 21:07 andidev

I cant seem to change the port when running sls offline. No documentation on it either.

sls offline --httpPort 3000

does not work for azure functions but it works for aws. How am I suppose to do it?

I managed to do this by adding "Host": { "LocalHttpPort": 4000 }

in the file local.settings.json. Hope it helps!

dan-qc avatar Sep 16 '21 07:09 dan-qc