Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

Latest commit

 

History

History
33 lines (21 loc) · 812 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 812 Bytes

Bokhyllan.lu

Setup

OSX/Linux

Dependencies: PostgreSQL(running), Ruby 2.0, Bundler

ARCHFLAGS="-arch x86_64" gem install pg
bundle install --without production staging
rake db:setup
bin/rails s

Production

Updating remote

git push origin master # Codeship keeps origin master in sync with staging
heroku pipeline:promote --app bokhyllan-staging

Pulling the database from Heroku

heroku pg:backups capture --app bokhyllan &&
curl -o heroku.dump `heroku pg:backups public-url --app bokhyllan` &&
pg_restore --clean --no-acl --no-owner -h localhost -U `whoami` -d bokhyllan_development heroku.dump &&
rm heroku.dump &&
bin/rake algoliasearch:reindex

Generating UML Diagram

Dependencies: Railroady

railroady -M | dot -Tpng > models.png