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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -5,7 +5,8 @@
"scripts": { "scripts": {
"build": "corenode-cli build", "build": "corenode-cli build",
"dev": "cross-env NODE_ENV=development nodemon --ignore dist/ --exec corenode-node ./src/index.js", "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", "license": "MIT",
"dependencies": { "dependencies": {