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.
5d303cc273a7e8784a7f243b2cec5c28?d=identicon&s=25 David U. (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.