2010-08-12

Define cucumber environment in .couchapprc

When you set-up a .couchapprc file you can define different databases, hosts ... for different environments (see couchapp doc).
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:

2 Kommentare:

  1. for me, a command like "couchapp push galaxy" produces a result of
    couchapp 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)

    AntwortenLöschen
  2. Did you define the destination "galaxy" in .couchapprc ? See also http://couchapp.org/page/couchapp-config

    AntwortenLöschen