Git Product home page Git Product logo

berg's Introduction

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.

berg's People

Contributors

bemurphy avatar dnitza avatar dylanwolff avatar hl avatar makenosound avatar query-string avatar timriley avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.