commit | 0e4f77b96b790fb38477ad20515349a75f3f7c21 | [log] [tgz] |
---|---|---|
author | Jan Piotrowski <piotrowski+github@gmail.com> | Mon Nov 26 14:19:29 2018 +0100 |
committer | GitHub <noreply@github.com> | Mon Nov 26 14:19:29 2018 +0100 |
tree | e019ec03b6fa50b6dc65b2ac5343c74704bf7555 | |
parent | e5ff2fb47754c9b4e7be565855fda5c2ca484bfc [diff] |
Recreate README (#14)
This the test server for the Cordova Plugin File-Transfer's Jasmine tests.
It is used on the CI server that is running those tests, a current deployment of the server is configured there as a parameter (http://sheltered-retreat-43956.herokuapp.com at the time of writing).
git clone https://github.com/apache/cordova-labs.git cd cordova-labs git checkout cordova-filetransfer
node server.js
Set the FILETRANSFER_SERVER_ADDRESS
variable when installing the plugin tests so they use your local service:
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"
Get your local IP by running:
ifconfig # Linux, macOS ipconfig # Windows
If your hosting provider supports Procfiles, you don't need to do anything as this project contains one.
Another more manual option is using forever
:
# install npm install -g forever # start forever start server.js # restart forever restart server.js # stop forever start server.js