To use these set-up when running cucumber I modify the env.rb mentioned here. It use the test environment defined in .couchapprc for cucumber scenarios.
Example .couchapprc file:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env": { | |
"default": { | |
"db-example": "http://user:pass@localhost:5984/myapp-dev", | |
"db": "http://192.168.111.1:5984/rem-dev" | |
}, | |
"test": { | |
"db": "http://localhost:5984/rem-test" | |
}, | |
"production": { | |
"db": "http://192.168.111.1:5984/rem" | |
} | |
} | |
} |
for me, a command like "couchapp push galaxy" produces a result of
AntwortenLöschencouchapp push galaxy
2011-08-14 14:17:56 [INFO] Visit your CouchApp here:
http://127.0.0.1:5984/galaxy/_design/enotes/index.html
but the corresponding entry in the couchapprc file points to a different couchdb (on 5985).
what am i doing wrong? (the default entry works well, but the flexibility promised here would be nice)
Did you define the destination "galaxy" in .couchapprc ? See also http://couchapp.org/page/couchapp-config
AntwortenLöschen