Forum: Ruby on Rails Retrieve host info in Rake task ?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
5c4e55b92169c16ce2ca8fd75318eded?d=identicon&s=25 David Unric (dunric)
on 2013-11-17 19:54

I'm writing a rake task for a standard Rails 3.x project
I'd like to retrieve a info from rails about project's hostname and if
possible also about protocol (http, https) and default port.

I can access these values from a controller f.E. but what about rake
task ?
This topic is locked and can not be replied to.