Sign inSign up

gizmoguy/clubfare

By gizmoguy

Updated almost 7 years ago

Image
0

569

gizmoguy/clubfare repository overview

README - ClubFare

This is an application designed to manage craft beer for a small bar. It is specifically designed for the Ruakura Club in Hamilton, New Zealand.

Ruby version

Ruby is 2.3.8

System dependencies

We depend on Postgres

Development instructions

An easy way to deploy a development version of Clubfare is with docker-compose, some quick docs:

  1. Install Docker and docker-compose.

  2. Run docker-compose up which will boot up a development clubfare webserver with a postgres database instance.

  3. Create the database by first launching bash in the docker sudo docker-compose run web bash and then run:

RAILS_ENV=development rake db:create
RAILS_ENV=development rake db:migrate

Deployment instructions

  1. Install Docker.

  2. Download automated build from public Docker Hub Registry: docker pull gizmoguy/clubfare

  3. Generate a SECRET_KEY_BASE with rake secret either inside Docker container or outside.

  4. Run docker with environment variables to point it towards a real DB server:

#!/bin/bash

DATABASE_URL="postgres://clubfare:[email protected]/clubfare"
SECRET_KEY_BASE="blah"

docker run -d --restart=always \
	-p 127.0.0.1:8081:80  \
	-e "DATABASE_URL=$DATABASE_URL" -e "SECRET_KEY_BASE=$SECRET_KEY_BASE" \
	--name clubfare gizmoguy/clubfare

Contributors

Tag summary

Content type

Image

Digest

sha256:272842bb0

Size

321.7 MB

Last updated

almost 7 years ago

docker pull gizmoguy/clubfare