Skip to content

Instantly share code, notes, and snippets.

@jadonk
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jadonk/bc9a814b0f14d21a0dc3 to your computer and use it in GitHub Desktop.
Save jadonk/bc9a814b0f14d21a0dc3 to your computer and use it in GitHub Desktop.
Grab WIP bone101 and BoneScript
[Unit]
Description=jekyll autorun
ConditionPathExists=|/var/lib/cloud9
[Service]
WorkingDirectory=/var/lib/cloud9
ExecStart=/usr/local/bin/jekyll build --destination bone101 --watch
SyslogIdentifier=jekyll-autorun
[Install]
WantedBy=multi-user.target
#!/bin/sh
# Use latest image from http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#BBB_Rev_C_.284GB_eMMC.29
# Update bone101
# fork http://github.com/jadonk/bone101 so you can make your own local modifications
git config --global user.name "User Name"
git config --global user.email user@address.com
# create ~/.ssh/id_rsa
cd /var/lib/cloud9
git remote add upstream git@github.com:user/bone101
git remote update
git checkout -b gh-pages upstream/gh-pages
# for Jekyll 0.11.2
#apt-get install jekyll
##grep -q '^SERVER_DIR' /etc/default/node && sed -i 's!^SERVER_DIR.*!SERVER_DIR=/var/lib/cloud9/_site/!' /etc/default/node || echo 'SERVER_DIR=/var/lib/cloud9/_site/' >> /etc/default/node
##jekyll bone101
#jekyll bone101 --auto 2>&1 >> /var/log/jekyll.log &
# for Jekyll 2.5.2
gem install jekyll
cp jekyll-autorun.service /lib/systemd/system/
systemctl enable jekyll-autorun.service
systemctl start jekyll-autorun.service
# Update BoneScript
#cd
#git clone git://github.com/jadonk/bonescript
#cd bonescript
#npm install -g
npm install -g git://github.com/jadonk/bonescript.git
systemctl restart bonescript.service
systemctl restart bonescript-autorun.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment