Fixed some code smells and a type in the base url of the website in production.rb.