Rails setup for easy-to-use church websites
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.bundle
app
bin
config
db
lib
log
public
spec
vendor/assets
.gitignore
.rspec
.ruby-version
.travis.yml
Dockerfile
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru
docker-compose.yml

README.md

Churchsite

Build Status

Rails setup intended for the Lincoln Union Church website but which could be made to work for other churches or organisations.

Docker development

If you have docker, seed the database with:

docker-compose run -e INITIAL_USER_NAME="Test" -e INITIAL_USER_EMAIL="test@example.com" -e INITIAL_USER_PASSWORD="Testing1" web bundle exec rails db:seed

Then start a server with:

docker-compose up

Requirements

In addition to the standard requirements for Ruby on Rails you will need

Setup

As with any Rails site, you can start a local development server with bundle exec rails server, but you'll need to manually create an admin user before you can actually do anything. The easiest way to do that is to seed the database:

INITIAL_USER_NAME="Your name" INITIAL_USER_EMAIL="you@domain.com" INITIAL_USER_PASSWORD="secret" bundle exec rails db:seed

This also creates a default homepage, but to make things work you'll need to go to /admin, log in with the credentials you decided on above, and create and edit pages and settings.