Rename index.js to start.js
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 22 Oct 2020 13:31:36 +0000 (15:31 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 22 Oct 2020 13:31:36 +0000 (15:31 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
docker/Dockerfile
manifest-cf-template.yml
package.json
src/start.js [moved from src/index.js with 100% similarity]

index e47bea8b399b96570c73ee0e5b66243c229c0bac..6b5e897f470d5b4be9bbf95e13622a625ae7a871 100644 (file)
@@ -19,5 +19,5 @@ COPY docker/config.json ./src/assets/config.json
 COPY docker/autoconfig.sh /autoconfig.sh
 RUN chmod +x /autoconfig.sh
 
-#CMD ["node", "src/index.js"]
-CMD /autoconfig.sh && node src/index.js
+#CMD ["node", "src/start.js"]
+CMD /autoconfig.sh && node src/start.js
index 13129e75538154d9c7538a31185c5c8a028c4058..9d0a740897f00443fc818c724d23c37629735259 100644 (file)
@@ -7,6 +7,6 @@ applications:
   - https://github.com/cloudfoundry/nodejs-buildpack
   no-route: true
   health-check-type: process
-  command: node src/index.js
+  command: node src/start.js
   env:
     OPTIMIZE_MEMORY: true
index 59fe0ea644f05a3c0708ec7a05e7e8131f76c235..fe48dfedb73e76192d800d18942241a8223cbcd9 100644 (file)
       "url": "http://www.apache.org/licenses/LICENSE-2.0"
     }
   ],
-  "main": "src/index.js",
+  "main": "src/start.js",
   "scripts": {
-    "start": "node src/index.js",
-    "start:debug": "node --inspect src/index.js",
-    "start:prof": "node --prof src/index.js",
-    "start:doctorprof": "clinic doctor -- node src/index.js",
-    "start:flameprof": "clinic flame -- node src/index.js",
-    "start:bubbleprof": "clinic bubbleprof -- node src/index.js",
+    "start": "node src/start.js",
+    "start:debug": "node --inspect src/start.js",
+    "start:prof": "node --prof src/start.js",
+    "start:doctorprof": "clinic doctor -- node src/start.js",
+    "start:flameprof": "clinic flame -- node src/start.js",
+    "start:bubbleprof": "clinic bubbleprof -- node src/start.js",
     "lint": "eslint src",
     "lint:fix": "eslint --fix src",
     "flow": "flow",
similarity index 100%
rename from src/index.js
rename to src/start.js