Skip to content

Instantly share code, notes, and snippets.

@gengkev
Last active July 17, 2017 15:12
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 gengkev/7f5e6782682ddbd994b50485a5b0e6b4 to your computer and use it in GitHub Desktop.
Save gengkev/7f5e6782682ddbd994b50485a5b0e6b4 to your computer and use it in GitHub Desktop.
Jekyll scripts for working on Director (TJ IOI website)

These scripts are located in /web/activities/tjioi/private/, and they compile the TJ IOI website from the /web/activities/tjioi/private/tjioi into the ../public/ directory.

#!/bin/bash
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
export GEM_HOME=$SCRIPTPATH/rubygems
cd $SCRIPTPATH/tjioi
git pull
$GEM_HOME/bin/bundler exec jekyll build -d ../../public -b tjioi --incremental
#!/bin/bash
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
# make gem install things locally
export GEM_HOME=$SCRIPTPATH/rubygems
# install bundler
gem install bundler
# ask bundler to install things
# --system tells it to use GEM_HOME
$GEM_HOME/bin/bundler install --gemfile=tjioi/Gemfile --system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment