diff --git a/Dockerfile b/Dockerfile index 7029d6b..18dee20 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,4 +14,4 @@ RUN npm i COPY . . -CMD [ "npm", "run", "start:dev" ] +CMD [ "npm", "run", "start:prod" ] diff --git a/fly.toml b/fly.toml deleted file mode 100644 index 2bbca70..0000000 --- a/fly.toml +++ /dev/null @@ -1,17 +0,0 @@ -# fly.toml app configuration file generated for pizzaria on 2023-09-07T14:42:20-03:00 -# -# See https://fly.io/docs/reference/configuration/ for information about how to use this file. -# - -app = "pizzaria" -primary_region = "gru" - -[build] - -[http_service] - internal_port = 5000 - force_https = true - auto_stop_machines = true - auto_start_machines = true - min_machines_running = 0 - processes = ["app"] diff --git a/package.json b/package.json index d1a49b2..f634210 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "prebuild": "rimraf dist", "build": "nest build", "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", - "start": "nest start", + "start": "NODE_ENV=production nest start", "start:dev": "NODE_ENV=development nest start --watch", "start:debug": "nest start --debug --watch", "start:prod": "NODE_ENV=production node dist/main",