Fixed some permissions, reverted to original production.rb