use infisical

This commit is contained in:
SrGooglo 2023-06-02 13:04:13 +00:00
parent 2076140d81
commit ac1f676b9f
7 changed files with 12 additions and 11 deletions

View File

@ -2,7 +2,7 @@ module.exports = {
apps: [
{
name: "main_api",
script: "./dist/index.js",
script: "./infisical-run.sh",
instances: "max",
exec_mode: "cluster",
env: {
@ -12,7 +12,7 @@ module.exports = {
},
{
name: "music_api",
script: "./dist/index.js",
script: "./infisical-run.sh",
instances: "max",
exec_mode: "cluster",
env: {
@ -22,7 +22,7 @@ module.exports = {
},
{
name: "file_api",
script: "./dist/index.js",
script: "./infisical-run.sh",
instances: "max",
exec_mode: "cluster",
env: {
@ -32,7 +32,7 @@ module.exports = {
},
{
name: "marketplace_api",
script: "./dist/index.js",
script: "./infisical-run.sh",
instances: "max",
exec_mode: "cluster",
env: {
@ -42,7 +42,7 @@ module.exports = {
},
{
name: "chat_api",
script: "./dist/index.js",
script: "./infisical-run.sh",
instances: "max",
exec_mode: "cluster",
env: {

View File

@ -2,6 +2,6 @@
"workspaceId": "64519574a8a691b55e8b361d",
"defaultEnvironment": "dev",
"gitBranchToEnvironmentMapping": {
"master": "production"
"master": "prod"
}
}

View File

@ -2,6 +2,6 @@
"workspaceId": "64519574a8a691b55e8b361d",
"defaultEnvironment": "dev",
"gitBranchToEnvironmentMapping": {
"master": "production"
"master": "prod"
}
}

View File

@ -2,6 +2,6 @@
"workspaceId": "64519574a8a691b55e8b361d",
"defaultEnvironment": "dev",
"gitBranchToEnvironmentMapping": {
"master": "production"
"master": "prod"
}
}

View File

@ -2,6 +2,6 @@
"workspaceId": "64519574a8a691b55e8b361d",
"defaultEnvironment": "dev",
"gitBranchToEnvironmentMapping": {
"master": "production"
"master": "prod"
}
}

View File

@ -2,6 +2,6 @@
"workspaceId": "64519574a8a691b55e8b361d",
"defaultEnvironment": "dev",
"gitBranchToEnvironmentMapping": {
"master": "production"
"master": "prod"
}
}

View File

@ -5,7 +5,8 @@
"scripts": {
"build": "corenode-cli build",
"dev": "cross-env NODE_ENV=development nodemon --ignore dist/ --exec corenode-node ./src/index.js",
"run:prod": "cross-env NODE_ENV=production node ./dist/index.js"
"run:prod": "cross-env NODE_ENV=production node ./dist/index.js",
"run:infisical:prod": "infisical run -- npm run run:prod"
},
"license": "MIT",
"dependencies": {