cage
cage copied to clipboard
canonical examples are pathological
all the pretty tree views in the docs only show 1 service - frontend
it would be illuminating to
- have a few more
- have names that indicate they are specific to your project and not canonical - "alice", "bob" instead of "frontend"
- have a couple canonically named placeholders - postgres (or db), redis
We could add more complicated examples in the docs. We have a full set of examples in the examples
folder, for example, showing off many variations of how to use cage.
But I'd like to keep the output of cage new
as simple as possible, and focusing on getting people to run cage new foo; cd foo; cage up --init
as soon as possible. Thoughts?
Does Rails pretty much assume a Redis server by default these days, for example? If so, we could rename db
to placeholders
and add a redis
pod.
Many cage projects will be small, in the real world, at least at first.
err... rename db to placeholders?
i would say the minimum rails app these days is:
- rails app
- db (probably postgres)
- cache (probably redis, maybe memcached)
If we're going to provide both db
and redis
in the default code skeleton, then we should place them both in a single file named pods/placeholders.yml
or something like that, instead of making more single-server pods, or putting redis
in db
.