Last active
August 29, 2015 13:56
-
-
Save hoetz/9335300 to your computer and use it in GitHub Desktop.
node.js express azure web site cheat sheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-[install node.js azure sdk mac os x] | |
-azure account download | |
-[save pub file to disk] | |
-azure account import xxx.publishsettings | |
-azure site create sitename --git | |
-sudo npm install express -g | |
-express | |
-npm install | |
-[rename app.js to server.js] | |
-[node server.js] will start your app locally | |
----git stuff in your src dir---- | |
-git init | |
-git commit -m "initial" | |
-git remote add azure [.git uri from azure manage portal] | |
-git push azure master | |
site is now running on xxx.azurewebsites.net | |
-npm install -g nodemon | |
[instead of "node server.js" start app with "nodemon server.js", listens to changes in js files, auto restarts app] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment