diff options
author | Francis Irving <francis@mysociety.org> | 2010-09-16 15:22:32 +0100 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2010-09-16 15:22:32 +0100 |
commit | 60fdcc3ae8cfe808a8e51e915b5b6a7ca475e8d1 (patch) | |
tree | 93d2068659529233e267da162f1141deb0c878a1 | |
parent | 99b4c82d46d8583ccff6cfbfebefb075e4e0f20d (diff) |
Some Ruby 1.9 things
-rwxr-xr-x | script/console | 2 | ||||
-rwxr-xr-x | script/server | 2 | ||||
-rw-r--r-- | todo.txt | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/script/console b/script/console index e29190bd3..98f6702bb 100755 --- a/script/console +++ b/script/console @@ -1,5 +1,5 @@ #!/usr/bin/ruby #!/usr/bin/env ruby -require File.dirname(__FILE__) + '/../config/boot.rb' +require File.expand_path(File.dirname(__FILE__) + '/../config/boot.rb') require 'commands/console' diff --git a/script/server b/script/server index 2c8e65b76..9c6088a88 100755 --- a/script/server +++ b/script/server @@ -1,5 +1,5 @@ #!/usr/bin/ruby #!/usr/bin/env ruby -require File.dirname(__FILE__) + '/../config/boot.rb' +require File.expand_path(File.dirname(__FILE__) + '/../config/boot.rb') require 'commands/server' @@ -74,6 +74,8 @@ Disable atime (@glynwintle suggests) http://www.softpanorama.org/Internals/Filesystems/linux_ext2_ext3.shtml (as/if we have caches with lots of files in a direcory) tune2fs -l /dev/mapper/sandwich-root +Add to /etc/fstab +mount -o remount /dev/mapper/sandwich-root Some requests to lower memory use of still: PID: 676 CONSUME MEMORY: 16968 KB Now: 102604 KB http://www.whatdotheyknow.com/request/parking_ticket_data_81 |