/punkapi-server

The server that powers punkapi.com

Primary LanguageRuby

PunkAPI - Server Build Status

The PunkAPI server is a pretty simple rails app, that provides authentication and a way to serve up the raw data.

The data itself is stored in the punkapi repository, it is pulled into this app through a git submodule.

Fetch the latest data from punkapi

Move into the punkapi-data folder and from there run in the terminal

$ git fetch
$ git merge origin/master

This will download any new data from the punkapi repo, you can then run

$ rake beer:load

This will load up all the data and add it to the db.

Deploying

Probably not very useful for anyone else!

  • Pull down any changes from punkapi
  • Commit and push any chnage to Github
  • Run git push dokku master
  • Once deployed run ssh root@punkapi.com
  • And to load up any data changes dokku run punkapi.com rake beer:load