serverless-azure-functions
serverless-azure-functions copied to clipboard
How to change port when running sls offline
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 cant seem to change the port when running
sls offline. No documentation on it either.sls offline --httpPort 3000does 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!