Accessing Repositories without Wildcard DNSPost to delicious

Warehouse v1.1.4 and below require a subdomain for each repository. If Warehouse is installed with a domain like code.activereload.net, each repository would be accessed with a subdomain like warehouse.code.activereload.net. This approach isn't very natural for some folks, and requires a bit of extra setup.

So as of Warehouse v1.1.5, you can add an environment variable that forces it to use paths (such as code.activereload.net/warehouse). All you have to do is set USEREPOPATHS=1 somehow. From the command line, it looks like this: USEREPOPATHS=1 script/server -e production. Your web server configuration should also let you set environment variables in the virtual host configuration. If for whatever reason you can't set it, you can uncomment line 12 of config/environment.rb so that 'USEREPOPATHS = true' is executed. This isn't recommended because you may lose this change after an upgrade and have to reset it.

There are a few top level paths that will not work as repository subdomains. I tried to keep the list as small as possible: admin, changesets, browser, install, login, logout, reset, and forget. This is still considered experimental, but we've only had a few bugs reported and fixed from the beta release. Our intent is to make this option default for Warehouse v1.2, since the original method seemed to cause more confusion than anything.

« How does the pricing and licensing work? | FAQs | What does Warehouse need to run? »

Talk To Me Now!

Talk Bubble

If you've got an IRC client, you can join us in #activereload on irc.freenode.net. We'll talk about ninjas, code, gaming and more ninjas.

  • With all those cooks in the kitchen at the same time while launching our latest project, Warehouse helped us keep tabs on everything!

    —Robert Bousquet, New Leaders

Copyright © 2007 Active Reload, LLC.