Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce App#mountable? and App#to_rack #386

Merged
merged 1 commit into from
Jan 15, 2016
Merged

Introduce App#mountable? and App#to_rack #386

merged 1 commit into from
Jan 15, 2016

Conversation

seanpdoyle
Copy link
Contributor

For deploys that need to be mounted to be useful, File for
example, this commit exposes an API for encapsulating that logic.
App#to_rack will create an instance of a Rack application that can
be mounted via mount $RACK_APP => "/path".

For deploys that don't serve assets from the file system,
Redis for example, mountable? should return false.

@seanpdoyle seanpdoyle force-pushed the sd-mountable branch 2 times, most recently from b847296 to 14d9b8a Compare January 15, 2016 20:21
For deploys that need to be mounted to be useful, [`File`][file] for
example, this commit exposes an API for encapsulating that logic.
`App#to_rack` will create an instance of a `Rack` application that can
be mounted via `mount $RACK_APP => "/path"`.

For deploys that don't serve assets from the file system,
[`Redis`][redis] for example, `mountable?` should return `false`.

[file]: https://github.com/thoughtbot/ember-cli-rails/blob/v0.7.0/lib/ember_cli/deploy/file.rb
[redis]: https://github.com/seanpdoyle/ember-cli-rails-deploy-redis
@seanpdoyle seanpdoyle merged commit f510fe8 into master Jan 15, 2016
@seanpdoyle seanpdoyle deleted the sd-mountable branch January 15, 2016 20:47
seanpdoyle added a commit to seanpdoyle/ember-cli-rails-assets that referenced this pull request Jan 15, 2016
This functionality is provided by
  [`ember-cli-rails`][ember-cli-rails#386].

[ember-cli-rails#386]: thoughtbot/ember-cli-rails#386
seanpdoyle added a commit to seanpdoyle/ember-cli-rails-deploy-redis that referenced this pull request Jan 15, 2016
`ember-cli-rails`'s deploy process [now determines if a deploy strategy
needs to be mounted as a routable rack app][mountable].

This deployment strategy doesn't, but it still needs to quack like other
strategies.

[mountable]: thoughtbot/ember-cli-rails#386
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant