xref: /5.5.2/couchdb/bin/couchdb.bat.tpl.in (revision 39a629b0)
139a629b0SPaul Joseph Davis@echo off
239a629b0SPaul Joseph Davissetlocal
339a629b0SPaul Joseph Davisrem First change to the erlang bin directory
439a629b0SPaul Joseph Daviscd %~dp0
539a629b0SPaul Joseph Davis
639a629b0SPaul Joseph Davisrem Allow a different erlang executable (eg, werl) to be used.
739a629b0SPaul Joseph Davisif "%ERL%x" == "x" set ERL=erl.exe
839a629b0SPaul Joseph Davis
939a629b0SPaul Joseph Davisecho CouchDB %version% - prepare to relax...
1039a629b0SPaul Joseph Davis%ERL% -smp auto -sasl errlog_type error ^
1139a629b0SPaul Joseph Davis      -eval "application:load(crypto)" ^
1239a629b0SPaul Joseph Davis      -eval "application:load(couch)" ^
1339a629b0SPaul Joseph Davis      -eval "crypto:start()" ^
1439a629b0SPaul Joseph Davis      -eval "couch_server:start([""../etc/couchdb/default.ini"", ""../etc/couchdb/local.ini""]), receive done -> done end."
15