From d182a67ab98336e0b047620f52097e948b3cf70e Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 22 Oct 2020 15:31:36 +0200 Subject: [PATCH] Rename index.js to start.js MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- docker/Dockerfile | 4 ++-- manifest-cf-template.yml | 2 +- package.json | 14 +++++++------- src/{index.js => start.js} | 0 4 files changed, 10 insertions(+), 10 deletions(-) rename src/{index.js => start.js} (100%) diff --git a/docker/Dockerfile b/docker/Dockerfile index e47bea8b..6b5e897f 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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 diff --git a/manifest-cf-template.yml b/manifest-cf-template.yml index 13129e75..9d0a7408 100644 --- a/manifest-cf-template.yml +++ b/manifest-cf-template.yml @@ -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 diff --git a/package.json b/package.json index 59fe0ea6..fe48dfed 100644 --- a/package.json +++ b/package.json @@ -17,14 +17,14 @@ "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", diff --git a/src/index.js b/src/start.js similarity index 100% rename from src/index.js rename to src/start.js -- 2.34.1