You can also parse the timestamp from the name of the dir that current links
to in releases (from the shell), or release_path from a capistrano task.
task :release?, :roles=>:app do
  puts release_path
end

$ cap release?
  * executing `release?'
/some/deployment/releases/20090507011828


-e


On Wed, May 6, 2009 at 6:54 PM, Nick Howard <[email protected]> wrote:

> You could use the mtime on the current/ directory to get the last
> deployment time. There is probably a better way, but that would be pretty
> simple.
>
> On Wed, May 6, 2009 at 1:14 PM, [email protected] <[email protected]>wrote:
>
>>
>> Hi,
>>
>> I'm trying to set all my Last-Modified headers (set in my application
>> controller) to the last deployed time.  Is there an established
>> mechanism that I can use to grab the last deploy time?  Should I setup
>> a deploy task that sets the current time into a record in my
>> site_options table?
>>
>> Suggestions?  Any help would be appreciated. Thanks!
>>
>>
>
>
> --
> -Nick Howard
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to