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