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 is 2.3.8
We depend on Postgres
An easy way to deploy a development version of Clubfare is with docker-compose, some quick docs:
Install Docker and docker-compose.
Run docker-compose up which will boot up a development clubfare webserver with a postgres database instance.
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
Install Docker.
Download automated build from public Docker Hub Registry: docker pull gizmoguy/clubfare
Generate a SECRET_KEY_BASE with rake secret either inside Docker container or outside.
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
Content type
Image
Digest
sha256:272842bb0…
Size
321.7 MB
Last updated
almost 7 years ago
docker pull gizmoguy/clubfare