Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Demo showcasing development and deployment of jekyll blog from Bash on Windows in VS Code with Deployment to Azure
*******
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