-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecosystem.config.js
41 lines (38 loc) · 1.39 KB
/
ecosystem.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
module.exports = {
apps: [{
name: "api-youtube-videos",
script: "./dist/src/server.js",
exec_mode: 'cluster',
watch: false,
env_production: {
NODE_ENV: "production",
DB_CLIENT: "pg",
DB_NAME: "db_youtube_app",
DB_HOST: "localhost",
DB_USER: "postgres",
DB_PORT: 5432,
DB_PASSWORD: "root",
JWT_API_SECRET: 'teste',
API_NAME: 'Api de videos do youtube',
API_PORT: 9070,
GOOGLE_YOUTUBE_API_URL: 'https://www.googleapis.com/youtube/v3/',
DATABASE_URL: "postgresql://postgres:root@localhost:5432/db_youtube_app?schema=public",
GOOGLEKEY: 'AIzaSyC5-hJVH0NH9xHL-Tfxeuc9a517NJ4KG3I'
},
env_development: {
NODE_ENV: "development",
DB_CLIENT: "pg",
DB_NAME: "db_youtube_app",
DB_HOST: "localhost",
DB_USER: "postgres",
DB_PORT: 5432,
DB_PASSWORD: "root",
JWT_API_SECRET: 'teste',
API_NAME: 'Api de videos do youtube',
API_PORT: 9070,
GOOGLE_YOUTUBE_API_URL: 'https://www.googleapis.com/youtube/v3/',
DATABASE_URL: "postgresql://postgres:root@localhost:5432/db_youtube_app?schema=public",
GOOGLEKEY: 'AIzaSyC5-hJVH0NH9xHL-Tfxeuc9a517NJ4KG3I'
},
}]
}