-
Notifications
You must be signed in to change notification settings - Fork 5
Development
cssu.ca uses Travis CI to continuously deploy the draft branch to Heroku.
Visit http://draft.cssu.ca/ to view the current state of the site on the draft branch.
You should have Ruby 2.2.1 and Python 2.7.x (for Pygments) installed. I recommend using rbenv and pyenv to manage your Ruby & Python installations.
First, you'll need bundler:
gem install bundlerBundle the required gems:
bundle installThen clone this repository and serve the site locally:
git clone git@github.com:cssu/cssu.ca.git
cd cssu.ca/
jekyll serveYou can use the watch flag when developing to instantly see the changes that you've made.
jekyll serve --watchNOTE: Changes to config.yml will not be instantly applied; you'll need to restart the server.
Use the draft branch to make any updates to the website. Whenever you want to publish your changes to the website, merge draft into master and then deploy:
# After making updates, merge `draft` into `master`
git checkout master
git merge draft
# Deploy to CDF (see 'Deploying' below for steps to set up the cdf remote)
git push cdf masterIMPORTANT: It's okay for commits on draft to contain bugs/issues, but master should always point to a commit that is ready to be published.
Whenever you need to pull upstream changes into your local branch, or update your feature branch with the latest draft changes, please rebase instead of merge. This will apply your changes on top of the upstream branch, avoiding messy merge commits.
Pulling draft changes from upstream:
git checkout draft
git pull --rebaseUpdating your feature branch with draft changes:
git checkout feature/cssu-now-selling-beer
git pull --rebase origin draft
# If you've already pushed commits to origin,
# you must force push your feature branch after rebasing:
git push --forceIf someone else is working on the same feature branch as you, they would then have to overwrite their local branch with the rebased one you just pushed:
git checkout feature/cssu-now-selling-beer
git fetch
git reset --hard origin/feature/cssu-now-selling-beer