made quick fix
This commit is contained in:
+2
-2
@@ -5,8 +5,8 @@
|
||||
"main": "app.js",
|
||||
"scripts": {
|
||||
"dev": "nodemon src/app.js",
|
||||
"start": "node src/app.js",
|
||||
"docker:start": "node --env-file=.env src/app.js",
|
||||
"start": "NODE_ENV=production node src/app.js",
|
||||
"docker:start": "NODE_ENV=production node --env-file=.env src/app.js",
|
||||
"lint": "eslint .",
|
||||
"lint:fix": "eslint . --fix",
|
||||
"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 itemRoutes from './routes/items/index.js'
|
||||
|
||||
loadEnvFile()
|
||||
if (process.env.NODE_ENV !== 'test') {
|
||||
loadEnvFile()
|
||||
}
|
||||
|
||||
const app = express()
|
||||
const port = process.env.PORT || 3000
|
||||
|
||||
Reference in New Issue
Block a user