Migrate the production.rb from standalone app