You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sam Ruby <ru...@apache.org> on 2016/01/23 20:24:18 UTC
[whimsy.git] [1/1] Commit d5cd831: debugging assists
Commit d5cd8315abaa8228a64ceaef32692ecf348b333a:
debugging assists
Branch: refs/heads/master
Author: Sam Ruby <ru...@intertwingly.net>
Committer: Sam Ruby <ru...@intertwingly.net>
Pusher: rubys <ru...@apache.org>
------------------------------------------------------------
www/board/agenda/Rakefile | ++++
www/board/agenda/routes.rb | ++++++
------------------------------------------------------------
10 changes: 10 additions, 0 deletions.
------------------------------------------------------------
diff --git a/www/board/agenda/Rakefile b/www/board/agenda/Rakefile
index cb562f9..65332df 100644
--- a/www/board/agenda/Rakefile
+++ b/www/board/agenda/Rakefile
@@ -19,6 +19,10 @@ namespace :server do
end
end
+task "touch" do
+ sh 'touch', File.expand_path('../tmp/restart.txt', __FILE__)
+end
+
file 'test/work' do
mkdir_p 'test/work'
end
diff --git a/www/board/agenda/routes.rb b/www/board/agenda/routes.rb
index 7ad56d6..491826e 100755
--- a/www/board/agenda/routes.rb
+++ b/www/board/agenda/routes.rb
@@ -17,6 +17,12 @@
status 302
end
+# for debugging purposes
+get '/env' do
+ content_type 'text/plain'
+ JSON.pretty_generate(env: env, ENV: ENV.to_h)
+end
+
# all agenda pages
get %r{/(\d\d\d\d-\d\d-\d\d)/(.*)} do |date, path|
agenda = "board_agenda_#{date.gsub('-','_')}.txt"