:tada: Checkout this project for a much simpler option (Meteor 1.4+) - https://github.com/talos-code/meteor-azure
CLI tool for deploying demeteorized meteor apps on Azure App Service.
NOTE: Windows only! While the CLI may work on Linux/Mac, the native modules Meteor requires must be compiled on a Windows machine for it to deploy successfuly on Azure. There is some investigation to moving this install process to Azure.
Meteor requires node v0.10.40 32bit to work. Check out nvm for a good tool to manage your node versions.
npm install -g christopheranderson/azure-demeteorizer
Using GitHub has the install source is temporary until the package reaches "beta"
If you have any issues during the install phase, it's likely that you are either using the wrong node version or don't have the prerequisites installed. Please review the requirements on node-gyp's github page for Windows users.
If you have any issues after you've deployed, it's likely your node version is incorrect on the server.
There are 4 commands needed to deploy to Azure
azure-demeteorizer build
azure-demeteorizer install
azure-demeteorizer zip
azure-demeteorizer deploy -s [sitename] -u [username] - p [password]
You should now be able to navigate to your site ({sitename}.azurewebsites.net) and see your application deployed now.
A couple of issues may arise while deploying:
fibers.node
There are lots of good reasons to need a custom web.config, for instance, forcing HTTPS or redirecting to your custom domain.
To use a custom web.config, just pass the path during the install phase. Like so: azure-demeteorizer install -p ./path/to/web.config
If you add .demeteorized
to your .gitignore
(if you're using git), you can prevent the tool output from affecting your repository.
Meteor is a popular JavaScript App Platform. It's something Azure App Service had a lot of requests for on the Azure feedback site. Azure App Serivce doesn't have explicit support for meteor apps, but it does have support for node applications, which is what meteor is built around. Demeteorizer is an open source, community supported tool designed to unpackage meteor apps into a regular node app. This CLI tool wraps Demeteorizer and makes the steps to deploy to Azure very simple.