Description
SUBJ.
I'll attach .beam file. I guess we'll need some script to "install" it.
Attached beam file should be placed to /opt/couchbase/lib/ns_server/erlang/lib/ns_server-1.8.1_2_ga06f339/ebin (NOTE: I'm not sure -945 is actual 1.8.1 release, version after ns_server may differ). It will replace original file under same name.
Then in order to hot-load this beam file do:
- curl -u Administrator:asdasd -d 'c:l(menelaus_web).' -v http://localhost:9000/diag/eval
- About to connect() to localhost port 9000 (#0)
- Trying 127.0.0.1...
- Connected to localhost (127.0.0.1) port 9000 (#0)
- Server auth using Basic with user 'Administrator'
> POST /diag/eval HTTP/1.1
> Authorization: Basic QWRtaW5pc3RyYXRvcjphc2Rhc2Q=
> User-Agent: curl/7.29.0
> Host: localhost:9000
> Accept: /
> Content-Length: 18
> Content-Type: application/x-www-form-urlencoded
> - upload completely sent off: 18 out of 18 bytes
< HTTP/1.1 200 OK
< Server: MochiWeb/1.0 (Any of you quaids got a smint?)
< Date: Fri, 22 Feb 2013 03:14:32 GMT
< Content-Length: 21
< - Connection #0 to host localhost left intact {module,menelaus_web}
(replace 9000 with 8091 and asdasd with real admin password)