From: Jérôme Benoit Date: Thu, 22 Oct 2020 13:31:36 +0000 (+0200) Subject: Rename index.js to start.js X-Git-Tag: v1.0.1-0~249 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d182a67ab98336e0b047620f52097e948b3cf70e;p=e-mobility-charging-stations-simulator.git Rename index.js to start.js Signed-off-by: Jérôme Benoit --- 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