That's normal: rake tasks are outside the request cycle, so they've no way of knowing how people access the site (ie localhost, a dotted ip address, one of the many domain names pointing at the server).
Maybe you could explain what it is you are trying to do?
That's normal: rake tasks are outside the request cycle, so they've no
way of knowing how people access the site (ie localhost, a dotted ip
address, one of the many domain names pointing at the server).
Maybe you could explain what it is you are trying to do?
Fred
I'm trying to send out an email from within the rake task, and I need to
include a link in the email to a certain page on my site.
I think you're going to have to have some config file or whatnot. Just looking at my server it hosts half a dozen domains - there's no way it can guess which is the one
you're interested in this time.
I think you're going to have to have some config file or whatnot. Just
looking at my server it hosts half a dozen domains - there's no way it
can guess which is the one
you're interested in this time.
Fred
Yeah, I ended up putting the info in config files. Ah well, thanks for
all the advice.