Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
wilzbach committed Jun 29, 2018
1 parent f98c99d commit 2e3bf97
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .d-compiler
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ldc
dmd
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ DUB registry

[![Build Status](https://travis-ci.org/dlang/dub-registry.svg)](https://travis-ci.org/dlang/dub-registry)

[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)

How to build & run locally
--------------------------

Expand Down
17 changes: 9 additions & 8 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "DUB registry (mirror)",
"description": "A mirror of code.dlang.org",
"name": "DUB registry",
"description": "Online registry for dub packages",
"repository": "https://github.com/dub/dub-registry",
"website": "https://github.com/dub/dub-registry",
"logo": "https://dlang.org/images/dlogo_opengraph.png",
"keywords": ["d", "dlang", "dub", "registry", "mirror"],
"keywords": ["d", "dlang", "dub", "registry"],
"buildpacks": [
{
"url": "http://github.com/MartinNowak/heroku-buildpack-d.git"
Expand All @@ -14,10 +14,11 @@
{
"plan": "mongolab:sandbox",
"as": "MONGO"
},
{
"plan": "scheduler:standard",
"as": "SCHEDULER"
}
]
],
"formation": {
"web": {
"quantity": 1
}
}
}
3 changes: 2 additions & 1 deletion source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import dubregistry.web;
import dubregistry.api;

import std.algorithm : sort;
import std.process : environment;
import std.file;
import std.path;
import userman.web;
Expand Down Expand Up @@ -107,7 +108,7 @@ void main()
udbsettings.serviceName = "DUB - The D package registry";
udbsettings.serviceURL = URL("http://code.dlang.org/");
udbsettings.serviceEmail = "[email protected]";
udbsettings.databaseURL = "mongodb://127.0.0.1:27017/vpmreg";
udbsettings.databaseURL = environment.get("MONGODB_URI", "mongodb://127.0.0.1:27017/vpmreg");
udbsettings.requireActivation = false;
userdb = createUserManController(udbsettings);
}
Expand Down

0 comments on commit 2e3bf97

Please sign in to comment.