Skip to content

Instantly share code, notes, and snippets.

@heyman
Created December 5, 2012 19:30
Show Gist options
  • Select an option

  • Save heyman/4218751 to your computer and use it in GitHub Desktop.

Select an option

Save heyman/4218751 to your computer and use it in GitHub Desktop.

Revisions

  1. heyman revised this gist Dec 5, 2012. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions post_compile
    Original file line number Diff line number Diff line change
    @@ -5,14 +5,18 @@ export LANG=en_CA.UTF-8

    # set up ruby env
    mkdir ruby-gems
    echo $HOME
    echo `pwd`
    export GEM_HOME=$HOME/.ruby-gems
    export PATH=$PATH:$HOME/.ruby-gems/bin

    # install SASS
    gem install sass
    gem install sass --verbose

    # install foreman
    gem install foreman
    gem install foreman --verbose

    ls -al $HOME/.ruby-gems

    # build assets
    python manage.py assets build
  2. heyman created this gist Dec 5, 2012.
    18 changes: 18 additions & 0 deletions post_compile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    #!/usr/bin/env bash

    # set terminal to UTF8 (otherwise `gem install foreman` fails)
    export LANG=en_CA.UTF-8

    # set up ruby env
    mkdir ruby-gems
    export GEM_HOME=$HOME/.ruby-gems
    export PATH=$PATH:$HOME/.ruby-gems/bin

    # install SASS
    gem install sass

    # install foreman
    gem install foreman

    # build assets
    python manage.py assets build