big-r81 commented on issue #4376:
URL: https://github.com/apache/couchdb/issues/4376#issuecomment-1387150304

   Update:
   
   Discussion with Robert on Slack:
   > weatherreport was built with Linux in mind and nothing else afaicr
   since it was for when Cloudant had customers running a build local to them, 
we needed a tool to extract basic "wtf" info. and we only permitted installs on 
Linux.
   
   It seems, the weatherreport needs some linux tools (ps) to work. These needs 
to be evaluated to find a equivalent for Windows with the same function/command 
output.
   
   To get weatherreport running, there needs to be added the following files:
   
   `bin/weatherreport.cmd` (Needs to be created, when CouchDB compiles):
   ```
   @echo off
   escript.exe "%~dpn0" %*
   ```
   
   `Makefile.win`:
   ```
   index a897554e7..55c4f3b33 100644
   --- a/Makefile.win
   +++ b/Makefile.win
   @@ -97,7 +97,7 @@ TEST_OPTS=-c startup_jitter=0 -c 
default_security=admin_local
   
    .PHONY: all
    # target: all - Build everything
   -all: couch fauxton docs
   +all: couch fauxton docs escriptize
   
   
    
################################################################################
   @@ -124,6 +124,11 @@ endif
    # target: fauxton - Build Fauxton web UI
    fauxton: share\www
   
   +.PHONY: escriptize
   +# target: escriptize - Build CLI tools
   +escriptize: couch
   +       @$(REBAR) -r escriptize apps=weatherreport
   +       @cp src/weatherreport/weatherreport bin/weatherreport
   
    
################################################################################
    # Testing
   @@ -264,6 +269,11 @@ mango-test: devclean all
                   .venv\Scripts\pip.exe install -r requirements.txt
           @cd src\mango && .venv\Scripts\python.exe ..\..\dev\run -n 1 
--admin=testuser:testpass .venv\Scripts\nose2
   
   +.PHONY: weatherreport-test
   +# target: weatherreport-test - Run weatherreport against dev cluster
   +weatherreport-test: devclean escriptize
   +       @dev\run -n 1 -a adm:pass --no-eval \
   +               'bin\weatherreport --etc dev\lib\node1\etc --level error'
   
    
################################################################################
    # Developing
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to