Skip to content

Instantly share code, notes, and snippets.

@joshholt
Created February 12, 2011 04:17
Show Gist options
  • Select an option

  • Save joshholt/823502 to your computer and use it in GitHub Desktop.

Select an option

Save joshholt/823502 to your computer and use it in GitHub Desktop.
Documentation about building and deploying tasks to gh-pages

#BuildFile Additions

Add the following line to the top of your Buildfile

config :all, :url_prefix => "/Tasks/static"

#Building and deploying

  1. Create a directory outside of the Tasks root directory named "tasks-builds"
  2. Change into the Tasks root directory and issue sc-build -rc tasks --build=build
  3. When the build finishes issue the following commands from one directory above Tasks
    1. cp -r Tasks/tmp/build/Tasks/static tasks-builds/.
    2. cd Tasks && git checkout gh-pages
    3. cp -r ../tasks-builds/static .
    4. cp static/tasks/en/build/index.html .
    5. git add . && git commit -avm "<Your Message>"
    6. git push origin gh-pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment