agmission/Development/server/.vscode/launch.json

271 lines
6.8 KiB
JSON

{
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
// "env": {
// "DEBUG": "email-templates node server.js"
// },
"version": "1.0.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug Import CustStripe Subs",
"runtimeVersion": "16.20.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=2048",
"--nouse-idle-notification",
"--trace-warnings"
],
"env": {
"DEBUG": "agm:*",
"PRODUCTION": "false"
},
"program": "${workspaceFolder}/workers/importCustStripeSubs.js",
"args": [
"cus_SIX3z3yexFrh6q", //"cus_RyON6s93uk5Wxh", // Replace with your Stripe customer ID
//"--dry-run"
],
"cwd": "${workspaceFolder}",
"envFile": "${workspaceFolder}/environment_prod.env",
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"name": "AGM DEBUG PRODUCTION",
"runtimeVersion": "16.20.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=2048",
"--nouse-idle-notification",
"--icu-data-dir=/home/trung/.nvm/versions/node/v16.20.2/lib/node_modules/full-icu",
"--trace-warnings"
],
"env": {
"DEBUG": "agm:*",
"PRODUCTION": "true"
},
"program": "${workspaceFolder}/server.js",
"cwd": "${workspaceFolder}",
"envFile": "${workspaceFolder}/environment_prod.env",
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"name": "Node 16- AGM DEBUG",
"runtimeVersion": "16.20.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=2048",
"--nouse-idle-notification",
"--icu-data-dir=/home/trung/.nvm/versions/node/v16.20.2/lib/node_modules/full-icu",
"--trace-warnings"
],
"env": {
"DEBUG": "agm:*"
},
"program": "${workspaceFolder}/server.js",
"cwd": "${workspaceFolder}",
"envFile": "${workspaceFolder}/environment.env",
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"name": "AGM DEBUG",
"runtimeVersion": "14.17.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=2048",
"--nouse-idle-notification",
"--icu-data-dir=/home/trung/.nvm/versions/node/v14.17.2/lib/node_modules/full-icu",
"--trace-warnings"
],
"env": {
"DEBUG": "agm:*"
},
"program": "${workspaceFolder}/server.js",
"cwd": "${workspaceFolder}",
"envFile": "${workspaceFolder}/environment.env",
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"runtimeVersion": "16.20.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=2048",
"--nouse-idle-notification"
],
"name": "Launch Copy Jobs PROD",
"program": "${workspaceFolder}/scripts/migrateJobIds.js",
"args": [
"copy"
],
"cwd": "${workspaceFolder}",
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"envFile": "${workspaceFolder}/environment_prod.env",
"env": {
"DEBUG": "agm:reconcile-jobs",
"PRODUCTION": "true",
"NODE_ENV": "production",
"SOURCE_DB_URI": "mongodb://agm:Agm2017@agndb0.agnav.com:27017/agmission?authSource=agmission&readPreference=primary&appname=Copy-Jobs&ssl=false",
"KEEP_RELATED_IDS": "true"
},
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"runtimeVersion": "16.20.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=2048",
"--nouse-idle-notification"
],
"name": "Launch Copy App Details PROD",
"program": "${workspaceFolder}/scripts/copyApplicationDetails.js",
"args": [
"--dry-run"
],
"cwd": "${workspaceFolder}",
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"envFile": "${workspaceFolder}/environment_prod.env",
"env": {
"DEBUG": "agm:copy-app-details",
"PRODUCTION": "true",
"NODE_ENV": "production",
},
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"runtimeVersion": "16.20.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=2048",
"--nouse-idle-notification"
],
"name": "Launch Program PROD",
"program": "${file}",
"args": [
"--dry-run"
],
"cwd": "${workspaceFolder}",
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"envFile": "${workspaceFolder}/environment_prod.env",
"env": {
"DEBUG": "agm:*",
"PRODUCTION": "true",
"NODE_ENV": "production",
"END_YEAR": "2021"
},
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"runtimeVersion": "16.20.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=2048",
"--nouse-idle-notification"
],
"name": "Launch Program",
"program": "${file}",
"cwd": "${workspaceFolder}",
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"envFile": "${workspaceFolder}/environment.env",
"env": {
"DEBUG": "agm:*"
},
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"runtimeVersion": "16.20.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=2048",
"--nouse-idle-notification"
],
"name": "Clean Orphaned App Details - DRY RUN",
"program": "${workspaceFolder}/scripts/cleanOrphanedAppDetails.js",
"args": [
"--dry-run"
],
"cwd": "${workspaceFolder}",
"envFile": "${workspaceFolder}/environment.env",
"env": {
"DEBUG": "agm:cleanup",
"BATCH_SIZE": "1000",
"START_YEAR": "2020",
"END_YEAR": "2025"
},
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"runtimeVersion": "16.20.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=2048",
"--nouse-idle-notification"
],
"name": "Clean Orphaned App Details - PROD",
"program": "${workspaceFolder}/scripts/cleanOrphanedAppDetails.js",
"args": [
// Remove "--dry-run" when ready for actual cleanup
"--dry-run"
],
"cwd": "${workspaceFolder}",
"envFile": "${workspaceFolder}/environment_prod.env",
"env": {
"DEBUG": "agm:cleanup",
"PRODUCTION": "true",
"NODE_ENV": "production",
"BATCH_SIZE": "1000",
"START_YEAR": "2020",
"END_YEAR": "2025"
},
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"runtimeVersion": "16.20.2",
"runtimeArgs": [
"--expose-gc",
"--max-old-space-size=2048",
"--nouse-idle-notification"
],
"name": "Clean Orphaned App Details - CHECK ONLY",
"program": "${workspaceFolder}/scripts/cleanOrphanedAppDetails.js",
"args": [
"--check-only"
],
"cwd": "${workspaceFolder}",
"envFile": "${workspaceFolder}/environment.env",
"env": {
"DEBUG": "agm:cleanup",
"BATCH_SIZE": "1000"
},
"console": "integratedTerminal"
}
]
}