```ruby
class SeedsProxy < Rack::Proxy
  USE = :local
  LOCAL_URL = 'localhost:3001'
  REMOTE_URL = 'cocoa-tree.github.io:80'

  def rewrite_env(env)
    if USE == :remote
      env["HTTP_HOST"] = REMOTE_URL
    else
      env["HTTP_HOST"] = LOCAL_URL
      env["SCRIPT_NAME"] = env["SCRIPT_NAME"].gsub("/seeds", "")
      env["REQUEST_URI"] = env["REQUEST_URI"].gsub("/seeds", "")
    end
    env
  end
end
```

Use remote seeds per default.
user
```ruby
class SeedsProxy < Rack::Proxy
  USE = :remote
  LOCAL_URL = 'localhost:3001'
  REMOTE_URL = 'cocoa-tree.github.io:80'

  def rewrite_env(env)
    if USE == :remote
      env["HTTP_HOST"] = REMOTE_URL
    else
      env["HTTP_HOST"] = LOCAL_URL
      env["SCRIPT_NAME"] = env["SCRIPT_NAME"].gsub("/seeds", "")
      env["REQUEST_URI"] = env["REQUEST_URI"].gsub("/seeds", "")
    end
    env
  end
end
```
assistant