Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

Custom unicorn runit templates #58

Merged
merged 4 commits into from
Apr 23, 2014

Conversation

kevinreedy
Copy link
Contributor

This will allow more complex runit configurations for things like zero downtime deploys. Also, pass the preload_app option through to the template.

options(
:app => new_resource,
:bundler => new_resource.bundler,
:bundle_command => new_resource.bundle_command,
:rails_env => new_resource.environment_name,
:smells_like_rack => ::File.exists?(::File.join(new_resource.path, "current", "config.ru"))
:smells_like_rack => ::File.exists?(::File.join(new_resource.path, "current", "config.ru")),
:preload_app => new_resource.preload_app
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed? You can just reference @app.preload_app in the template.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. PR updated.

coderanger added a commit that referenced this pull request Apr 23, 2014
@coderanger coderanger merged commit 691dd29 into poise:master Apr 23, 2014
@coderanger
Copy link
Member

Should eventually be handled by a template content attr, but this is good for now :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants