Last active
January 22, 2017 23:58
-
-
Save toolboc/3be7e9305f21e590196466c6209ac410 to your computer and use it in GitHub Desktop.
Demo showcasing development and deployment of jekyll blog from Bash on Windows in VS Code with Deployment to Azure
This file contains 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
******* | |
Prereqs | |
******* | |
Install Jekyll as per http://biserkov.com/blog/2016/06/04/Steps-to-install-Jekyll-on-Ubuntu-on-Windows/ | |
Install the azure xplat-cli https://azure.microsoft.com/en-us/documentation/articles/xplat-cli-install/ | |
enable DBUS in BoUoW : sudo sed -i 's$<listen>.*</listen>$<listen>tcp:host=localhost,port=0</listen>$' /etc/dbus-1/session.conf | |
******* | |
Steps | |
******* | |
<create github repo in firefox> | |
<open VS Code> | |
git clone https://github.com/toolboc/demo.git | |
<Open folder in VS Code> | |
jekyll new . | |
<edit config.yml> | |
bundle exec jekyll build | |
bundle exec jekyll serve --force_polling | |
<test in local browser> | |
git add . | |
git commit -m "init" | |
git remote -v : Note origin to github | |
azure login | |
azure config mode asm | |
azure site create --location "Central US" --git jekdemo | |
git remote -v : Note new azure repo | |
git push azure master | |
<visit website> : Note that static files not sent | |
touch .deployment | |
<modify .deployment with below> | |
****** | |
[config] | |
project = _site | |
****** | |
<modify .gitignore> | |
****** | |
remove "_site" | |
****** | |
git add add _site/ | |
git commit -m "setup kudu" | |
git push azure master again | |
curl, whois, dig +trace, nslookup | |
finishing touch, launch firefox & and test there |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment