made quick fix
This commit is contained in:
+2
-2
@@ -5,8 +5,8 @@
|
|||||||
"main": "app.js",
|
"main": "app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nodemon src/app.js",
|
"dev": "nodemon src/app.js",
|
||||||
"start": "node src/app.js",
|
"start": "NODE_ENV=production node src/app.js",
|
||||||
"docker:start": "node --env-file=.env src/app.js",
|
"docker:start": "NODE_ENV=production node --env-file=.env src/app.js",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"lint:fix": "eslint . --fix",
|
"lint:fix": "eslint . --fix",
|
||||||
"migrate": "node-pg-migrate -m ./src/migrations",
|
"migrate": "node-pg-migrate -m ./src/migrations",
|
||||||
|
|||||||
+3
-1
@@ -13,7 +13,9 @@ import collectionRoutes from './routes/collections/index.js'
|
|||||||
import setRoutes from './routes/sets/index.js'
|
import setRoutes from './routes/sets/index.js'
|
||||||
import itemRoutes from './routes/items/index.js'
|
import itemRoutes from './routes/items/index.js'
|
||||||
|
|
||||||
loadEnvFile()
|
if (process.env.NODE_ENV !== 'test') {
|
||||||
|
loadEnvFile()
|
||||||
|
}
|
||||||
|
|
||||||
const app = express()
|
const app = express()
|
||||||
const port = process.env.PORT || 3000
|
const port = process.env.PORT || 3000
|
||||||
|
|||||||
Reference in New Issue
Block a user