Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12173

Add docs to run local filetransfer server for mobilespec

    XMLWordPrintableJSON

Details

    Description

      The cordova-vm filetransfer server could be offline.

      Add docs to show people how to run their own local server.

      The server to run is at:
      https://github.com/apache/cordova-labs/tree/cordova-filetransfer

      And you would override this variable for this test plugin:
      https://github.com/apache/cordova-plugin-file-transfer/blob/9b322dec6790f6d273b8f707bc07976d778c4cf6/tests/plugin.xml#L33

      cordova plugin rm cordova-plugin-file-transfer-tests
      cordova plugin add path/to/cordova-plugin-file-transfer/tests --variable FILETRANSFER_SERVER_ADDRESS="http://yourlocal-IPAddressHere:5000"
      

      Run the server:

      git clone https://github.com/apache/cordova-labs.git
      cd cordova-labs
      git checkout cordova-filetransfer
      node server.js
      

      Get your local ip by running:

      ifconfig
      

      Attachments

        Activity

          People

            shazron Shazron Abdullah
            shazron Shazron Abdullah
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: