How to Deploy Vorlon.JS to Azure Web App

This video will walk you through how to deploy Vorlon.JS to an Azure Web App using Git version control. The pre-requisites for this video are that you have an active Microsoft Azure account and node.js installed.

Instructions

  1. Create new web app using custom create
    • From the configure section, Turn on Web Sockets – Save
  2. Go Back to Dashboard
  3. Setup deployment from source control
    • Select Local Git Repository
      • This will create the Git repository
  4. Install VorlonJS on your machine
  5. nodejs must be installed already. If not, install from nodejs.org
  6. Open node.js command prompt
    • Enter the following: npm i –g vorlon
  7. Test Vorlon
    • Type the following: vorlon
      • To terminate: Terminate – ctrl + c
  8. You should be in your user folder. We must now browse to the proper folder
    • cd appdata
    • cd roaming
    • cd npm
    • cd node_modules
    • cd vorlon
  9. Type: start . (this will launch explorer)
  10. Open another explorer
    • Create a new folder (ex C:\Dev\VorlonJS)
  11. Copy node_modules folder from vorlon folder to the new folder
  12. Copy all the files WITHIN the server folder (within vorlon folder) to the new folder you created
  13. Create new text file package.json
  14. Edit the file and add the following
{
    "name":"vorlon",
    "version":"0.0.15",
    "description": "vorlon",
    "main": "server.js"
}

Now we want to commit this into azure website

  1. Open Git Bash
    1. Get GIT url from Azure Deployments page
      • It also has instructions
    2. Browse to your vorlonjs folder you created (example: cd /c/dev/vorlonjs)
    3. Now we are going to use the commands from azure to add files to git
      • git init
      • git add .
      • git commit –m “initial commit”
    4. Again copying right from azure to add remote repository and commit
      • git remote add azure (this line will be in your azure account)
      • git push azure master
        • If need be use reset deployment credentials
      • Enter your password
  2. When it’s done it should now say “Active Deployment”
  3. Go to dashboard / URL
  4. First time it loads it may error out, just refresh it
  5. That’s it!