Ver Fonte

Use SYNC_PORT instead

Girish Ramakrishnan há 7 anos atrás
pai
commit
7a9f077e99
3 ficheiros alterados com 3 adições e 3 exclusões
  1. 1 1
      CloudronManifest.json
  2. 1 1
      start.sh
  3. 1 1
      test/test.js

+ 1 - 1
CloudronManifest.json

@@ -12,7 +12,7 @@
     "localstorage": {}
   },
   "tcpPorts": {
-    "SYNCER_PORT": {
+    "SYNC_PORT": {
       "title": "Sync Port",
       "description": "Port over which syncthing will exchange data (do not disable)",
       "defaultValue": 22000,

+ 1 - 1
start.sh

@@ -17,7 +17,7 @@ if [ ! -f /app/data/config/config.xml ]; then
 fi
 
 # Set the listenAddress and the gui enabled to make sure user doesnt lock themselves  out by accident.
-sed -e "s,<listenAddress>.*</listenAddress>,<listenAddress>tcp://:${SYNCER_PORT}</listenAddress>," -i /app/data/config/config.xml
+sed -e "s,<listenAddress>.*</listenAddress>,<listenAddress>tcp://:${SYNC_PORT}</listenAddress>," -i /app/data/config/config.xml
 sed -e 's,<gui .*>,<gui enabled="true" tls="false" debugging="false">,' -i /app/data/config/config.xml
 
 chown -R cloudron:cloudron /app/data/config /app/data

+ 1 - 1
test/test.js

@@ -118,7 +118,7 @@ describe('Application life cycle test', function () {
     });
 
     it('install app', function () {
-        execSync('cloudron install --new --wait --port-bindings PORT=' + SYNC_PORT + ' --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
+        execSync('cloudron install --new --wait --port-bindings SYNC_PORT=' + SYNC_PORT + ' --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
     });
 
     it('can get app information', function () {