It looks like environment is not available yet, or I don't know how to do it in config.ru