Skip to content

Commit

Permalink
chore(db): set db connection
Browse files Browse the repository at this point in the history
  • Loading branch information
4lessandrodev committed Apr 30, 2022
1 parent a696a71 commit ce8197d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
{
"name": "finance-project",
"version": "1.0.0",
"description": "",
"description": "api de uma aplicação de controle financeiro",
"author": "Alessandro L. Menezes",
"private": true,
"license": "MIT",
"keywords": [
"domain-driven-design",
"api",
"finance",
"tdd",
"graphql",
"event"
],
"scripts": {
"prestart:dev": "./scripts/pre-start-dev.sh",
"postinstall": "./scripts/post-install.sh",
"prebuild": "rimraf dist",
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start": "node ./dist/main.js",
"start:dev": "env-cmd nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "NODE_ENV=production node dist/main",
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import { PORT } from '@config/env';

async function bootstrap () {
const app = await NestFactory.create(AppModule);
await app.listen(process.env.PORT || PORT);
await app.listen(process.env.PORT ?? PORT);
}
bootstrap();

0 comments on commit ce8197d

Please sign in to comment.