The new icelab.com.au, built with dry-rb, rom-rb and Roda
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
apps Add designer role to careers page Oct 18, 2018
assets Rename the `common` config `to `application`. May 4, 2016
bin component => system dir rename Aug 15, 2016
config Fix some references to the old component dir Aug 22, 2016
db Add `slug` column to `people` table Oct 9, 2016
lib Work with new minimagick-enabled Attache download URLs Feb 22, 2017
log Raygun-zapped skeleton. Apr 18, 2016
public Add favicons. Jun 17, 2016
spec Mark specs as pending which need work to interact with formalist forms Feb 22, 2017
support/db Raygun-zapped skeleton. Apr 18, 2016
system Work with new minimagick-enabled Attache download URLs Feb 22, 2017
.babelrc Fix up linting. May 4, 2016
.eslintrc.json Adjust eslint rules. May 4, 2016
.gitignore Ignore where we’ll clone the embedded private repo Jun 14, 2016
.node-version Replicate Readings assets configuration Apr 21, 2016
.rspec Raygun-zapped skeleton. Apr 18, 2016
.rubocop.yml Update Rubocop config Nov 28, 2017
.ruby-version Update Ruby to 2.3.1 Jul 4, 2016
.travis.yml Add bundler-audit gem and add running bundle-audit update & bundle-au… Nov 28, 2017
Dangerfile Add Danger, Rubocop and a basic Dangerfile Jul 31, 2016
Gemfile Add bundler-audit gem and add running bundle-audit update & bundle-au… Nov 28, 2017
Gemfile.lock Update nokogiri to resolve vulns identified by bundle-audit Nov 28, 2017
LICENSE.md Raygun-zapped skeleton. Apr 18, 2016
Procfile Add Procfile Jun 14, 2016
Procfile.dev Use notgun in Procfile Aug 12, 2016
README.md Fix a typo in README Sep 3, 2016
Rakefile component => system dir rename Aug 15, 2016
config.ru Fix some references to the old component dir Aug 22, 2016
package.json Use npm version of roneo. Feb 23, 2017

README.md

Berg

Build Status Code Climate Test Coverage

The new icelab.com.au, built with dry-rb, rom-rb and Roda.

Development

First-time setup

If you're in Icelab and have access to the private berg-assets repository:

./bin/setup --with-private-assets

Otherwise:

./bin/setup

Adding sample data

rake db:sample_data

Running the app

foreman start -f Procfile.dev

Assets

The public designs for this site are contained in a separate, private berg-assets repository. If you’re working on Berg within Icelab, you should have a copy of this repository checked out at app/main/assets. You can make changes within that directory and push them up as you would with any ordinary git repo.

To prepare the site to deploy with updated assets, get the latest commit from berg-assets and save it in apps/main/.assets-commit. For example, to save the most recent commit in your apps/main/assets working directory:

(pushd apps/main/assets; git rev-parse HEAD; popd) > apps/main/.assets-commit

Sitemaps

The sitemap_generator gem is used to generate sitemaps.

To create the sitemap and upload it to S3: rake sitemap:create

To refresh the sitemap and ping search engines: rake sitemap:refresh

Deployment

Deployment to Heroku requires the following buildpacks:

  1. https://github.com/timshadel/heroku-buildpack-github-netrc
  2. https://github.com/icelab/berg-buildpack
  3. heroku/nodejs
  4. heroku/ruby

A GITHUB_AUTH_TOKEN config must be set with a token that is authorized to clone the berg-assets repository.

apps/main/.assets-commit must exist with a valid commit SHA for the berg-assets repository.