Jonas Brusman

I like to do high fives, take photographs and make cool things with Ruby.

Arvid

Photo Photo Photo Photo

2017-08-08

Spain

Photo Photo Photo Photo

Went to Spain with Teamtailor in the beginning of September. It was pretty nice. ☀️

Road trip – part 2

IMG_6428.jpg IMG_6438.jpg IMG_6434.jpg DSCF3240.jpg DSCF3169.jpg

More photos from our road trip.

See also: part 1

Road trip

IMG_6441.jpg DSCF3189.jpg DSCF3225.jpg DSCF3234.jpg DSCF3221.jpg DSCF3235.jpg

Eva and I rented a car (our first summer with driving licenses), filled it with clothes, a tent and some food and then took off on a little road trip down the east coast of Sweden.

See also: part 2

Campfire

DSCF2402.jpg DSCF2406.jpg DSCF2415.jpg DSCF2440.jpg

Packed Henrik’s car with a tent, beer and firewood and went camping before it got too cold outside.

Springtime at Sörby

DSCF1823.jpg DSCF1845.jpg

Divshot Jekyll hosting

I used to host this site on Heroku but have now moved to a platform build for static sites, or as Divshot puts it: Static Web Hosting for Developers. Setting up the site on Divshot was a breeze, took just a couple of seconds from when I started reading the documentation to when I had the site up and running. And they even have a free plan for small sites like this one.

Continious deployment with CircleCI

My previous setup allowed me to just push my updates to the Github repository and have Heroku pull the changes and update the site automatically. The new setup uses CircleCI to accomplish the same. Add your Divshot token to the environment variables on CircleCi (more info) and then tell it to deploy on successful deploy by adding this to the circle.yml file in the root of the repository:

test:
  override:
    - bundle exec jekyll build
deployment:
  production:
    branch: master
    commands:
      - npm install -g divshot-cli
      - divshot push production —token $DIVSHOT_TOKEN
  staging:
    branch: /(^(?!master$).*$)/
    commands:
      - npm install -g divshot-cli
      - divshot push staging —token $DIVSHOT_TOKEN

It will deploy the master branch to the production environment and all other branches to the staging environment. All automatically when pushing to Github.