Shazron Abdullah created CB-12173:
-------------------------------------

             Summary: Add docs to run local filetransfer server for mobilespec
                 Key: CB-12173
                 URL: https://issues.apache.org/jira/browse/CB-12173
             Project: Apache Cordova
          Issue Type: Bug
            Reporter: Shazron Abdullah


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

{code}
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";
{code}

Run the server:
{code}
git clone https://github.com/apache/cordova-labs.git
cd cordova-labs
git checkout cordova-filetransfer
node server.js
{code}

Get your local ip by running:
{code}
ifconfig
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to