Civic Generator

Rails template for projects at Civica Digital.

How to use it?

You need to have the following dependencies installed:

# Create
rails new myapp -m https://raw.githubusercontent.com/civica-digital/civic-generator/master/civicops.rb

# Update
rails app:template LOCATION=https://raw.githubusercontent.com/civica-digital/civic-generator/master/civicops.rb

Docker

You can use the following image to create an application:

# Create a new application with `myapp` as name
civicadigitaldocker/civicops myapp

MacOS:

docker run --rm -ti -v $PWD:/usr/src civicadigitaldocker/civicops myapp

Linux:

# If you are using Linux, you need to specify the user
docker run --rm -ti -v $PWD:/usr/src -u $(id -u):$(id -g) civicadigitaldocker/civicops myapp