QA/Mozmill Test Automation/Dashboard/FAQ: Difference between revisions

Jump to navigation Jump to search
Line 18: Line 18:
</pre></blockquote>  
</pre></blockquote>  
The two options which are important are ''--design'', and ''--couch''. That means, uploading the design document with the name ''"dashboard.js"'' to the Couchdb database ''"mozmill"'' on localhost needs:<br>  
The two options which are important are ''--design'', and ''--couch''. That means, uploading the design document with the name ''"dashboard.js"'' to the Couchdb database ''"mozmill"'' on localhost needs:<br>  
<blockquote><pre>$ couchapp --design dashboard.js --couch http://localhost:5984/mozmill/
<blockquote><pre>$ couchapp push dashboard.js http://localhost:5984/mozmill/
</pre></blockquote>  
</pre></blockquote>  
If the database has been protected by an admin and login credentials are necessary to push a design document, use the "''user:password@''" prefix in-front of the hostname.<br>  
If the database has been protected by an admin and login credentials are necessary to push a design document, use the "''user:password@''" prefix in-front of the hostname.<br>


===Can node.couchapp automatically sync results with a database?===
===Can node.couchapp automatically sync results with a database?===
Yes, that is possible. Simply add the ''"--sync"'' option when pushing a design document to the database. The application will not exit, but each change to the design document will be detected and synced immediately. There is no need to run this command multiple times. The only execption is when couchdb views have to be updated. In such a case the application has to be restarted.<br>
Yes, that is possible. Simply add the ''"--sync"'' option when pushing a design document to the database. The application will not exit, but each change to the design document will be detected and synced immediately. There is no need to run this command multiple times. The only execption is when couchdb views have to be updated. In such a case the application has to be restarted.<br>
canmove, Confirmed users, Bureaucrats and Sysops emeriti
4,747

edits

Navigation menu