aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/crontab.ugly7
-rw-r--r--config/routes.rb3
2 files changed, 7 insertions, 3 deletions
diff --git a/config/crontab.ugly b/config/crontab.ugly
index 566fceb32..a580ce8ac 100644
--- a/config/crontab.ugly
+++ b/config/crontab.ugly
@@ -4,11 +4,14 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org. WWW: http://www.mysociety.org/
#
-# $Id: crontab.ugly,v 1.2 2008-02-13 12:10:41 francis Exp $
+# $Id: crontab.ugly,v 1.3 2008-02-22 01:58:37 francis Exp $
PATH=/usr/local/bin:/usr/bin:/bin
MAILTO=team@mysociety.org
+# Once an hour
+39 0 * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/alert-overdue-requests.lock /data/vhost/!!(*= $vhost *)!!/mysociety/foi/script/alert-overdue-requests || echo "stalled?"
+
# Once a day, early morning
-23 4 * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!//delete-old-sessions.lock /data/vhost/!!(*= $vhost *)!!/mysociety/foi/script/delete-old-sessions || echo "stalled?"
+23 4 * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/delete-old-sessions.lock /data/vhost/!!(*= $vhost *)!!/mysociety/foi/script/delete-old-sessions || echo "stalled?"
diff --git a/config/routes.rb b/config/routes.rb
index 80055713c..3ecfdb373 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -4,7 +4,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: routes.rb,v 1.35 2008-02-21 18:32:43 francis Exp $
+# $Id: routes.rb,v 1.36 2008-02-22 01:58:37 francis Exp $
ActionController::Routing::Routes.draw do |map|
# The priority is based upon order of creation: first created -> highest priority.
@@ -22,6 +22,7 @@ ActionController::Routing::Routes.draw do |map|
request.new_request_to_body '/new/:public_body_id', :action => 'new'
request.show_request '/request/:id', :action => 'show'
request.describe_state '/request/:id/describe', :action => 'describe_state'
+ request.show_response_no_followup '/request/:id/response', :action => 'show_response'
request.show_response '/request/:id/response/:incoming_message_id', :action => 'show_response'
request.get_attachment '/request/:id/response/:incoming_message_id/attach/:part/*file_name', :action => 'get_attachment'
end