Skip to content

Commit

Permalink
Add APP_ENV to travis. Set test url to 127.0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rafael committed Mar 6, 2012
1 parent f7108ca commit d27d942
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
@@ -1,3 +1,4 @@
language: clojure
env: APP_ENV=test
before_script:
- mongo test --eval 'db.addUser("thoth", "thoth");'
2 changes: 1 addition & 1 deletion src/thoth/config.clj
Expand Up @@ -15,7 +15,7 @@
(cond
production? heroku-mongo
development? "mongodb://thoth:thoth@localhost:27017/thoth"
test? "mongodb://thoth:thoth@localhost:27017/test"
test? "mongodb://thoth:thoth@127.0.0.1:27017/test"
:else ((println "You must set APP_ENV environment variable to production, development or test")
(System/exit 1)))))

Expand Down

0 comments on commit d27d942

Please sign in to comment.