Do I need to re-create and reinstall couchdb every time I want to check for a source change?

I am trying to contribute more with couchdb code, but I really don't know how to do it correctly.

I cloned the source from the apache git repository and built it using

./configure
make && sudo make install

Then I wanted to change the file from the source named couch_httpd_show.erl

Do I need to run again make && sudo make installfor every change I make in the source code and want to see how it behaves?

I'm sure there is a more practical way to do this, because this approach takes a little time and patience? :)

Any help would be really appreciated

thank

+5
source share
3 answers

Yes, there is a shortcut.

./configure
make dev
./utils/run

CouchDB . CouchDB . : ./tmp/log , ./tmp/lib ( ) ./etc/couch/local_dev.ini .

:

./utils/run -i

Erlang, .

CouchDB, :

make dev && ./utils/run -i

, , ^C, , .

Couchio, CouchDB. -, : ", . utils/ !"

+5

.

+2
erlc <file.erl>

& then copy the .beam file into place. To restart couchdb use init: restart (). in an erlang shell or POST / _restart to CouchDB.

Although you might want to use the erlang and javascript command line test suite to make sure you don't break anything.

0
source

All Articles