fractal-code / meteor-azure

Automate Meteor deployments on Azure App Service
MIT License
67 stars 20 forks source link

force-ssl #75

Closed michaelfp closed 4 years ago

michaelfp commented 4 years ago

Hi! The documentation is not clear enough to help to execute the package. Where I placed the web.config? I put on my hosted app service but when I ran in windows cmd npm run deploy, always return error on force-ssl

meteor-azure

info: Targetting 32-bit Node architecture error: The "force-ssl" package is not supported. Please read the docs to configure an HTTPS redirect in your web config. npm ERR! code ELIFECYCLE npm ERR! errno 1

ramijarrar commented 4 years ago

You need to point to the custom web config file in your deploy command:

meteor-azure --settings 'example/path/settings.json' --web-config 'example/path/web.config'

If you want to configure HTTPS redirect, remove the force-ssl package & add the rule to your web config.

This is documented here and there are samples available to copy directly if you are new to IISNode.

Hope that helps.