serverless / serverless-azure-functions

Serverless Azure Functions Plugin – Add Azure Functions support to the Serverless Framework
MIT License
266 stars 162 forks source link

How to change port when running sls offline #490

Open andidev opened 4 years ago

andidev commented 4 years ago

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?

dan-qc commented 3 years ago

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!