Skip to content
If you don't have a labs site you're gonna have a bad time.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
helpers
sketch
source
.bowerrc
.editorconfig
.gitignore
.ruby-version
Gemfile
Gemfile.lock
LICENSE.txt
README.md
article.erb
bower.json
config.rb
gulpfile.js
package.json

README.md

Upgrade 2017 for our labs website.

Local setup

  1. Make sure you have the same Ruby version installed as the repo.
  2. Install Bundler and Node.js.
  3. Clone repository
  4. $ npm install && gulp install

Gulp commands

Runs bundle install and bower install:

$ gulp install

Runs bundle exec middleman:

$ gulp middleman

Builds Middleman and create a BrowserSync server that watches all changes:

$ gulp serve

Builds Middleman:

$ gulp build

Writing posts

$ middleman article NAME

Will generate a file in source/posts.

Deployment

The master branch is automatically deployed with Codeship with the following custom script:

rsync -avz -e "ssh" ./build/ user@ip:/var/www/labs.kollegorna.se --delete-before

You can’t perform that action at this time.