We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a06bdc5 + fac5d1f commit 394d29cCopy full SHA for 394d29c
.github/workflows/cd.yml
@@ -59,6 +59,7 @@ jobs:
59
After=network.target
60
61
[Service]
62
+ Environment=NODE_ENV=production
63
User=ubuntu
64
ExecStart=/usr/bin/npm run start --prefix /opt/app/
65
Restart=always
src/index.js
@@ -17,7 +17,9 @@ import { prisma } from "./db.config.js";
17
import path from "path";
18
19
20
-dotenv.config();
+dotenv.config({
21
+ path: process.env.NODE_ENV === 'production' ? '.env.production' : '.env'
22
+});
23
24
passport.use("google", googleStrategy);
25
passport.use("kakao", kakaoStrategy);
0 commit comments