This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pm2Cb from "pm2"; | |
import bluebird from "bluebird"; | |
import express from "express"; | |
// /* if you use Bluebird, it makes using PM2 API easier, creating *Async functions */ | |
const pm2 = bluebird.promisifyAll(pm2Cb) as unknown as any; | |
import * as promClient from "prom-client"; | |
import { v4 as uuidv4 } from "uuid"; | |
/** Total timeout for workers, ms */ | |
const TIMEOUT = 2000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
================= REQUIRED USER ACCOUNT INFORMATION ============================================== | |
To install pre-reqs:- | |
npm install request | |
npm install [email protected] | |
*/ | |
var accountID = '4541795_SB1'; | |
var consumer = { | |
public: 'YOUR CLIENT ID', | |
secret: 'CLIENT SECRET' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#server react | |
DIR_deploy="/srv" | |
DIR_server="$DIR_deploy/server" | |
DIR_server_WWW="$DIR_server/www" | |
DIR_server_tmp="$DIR_server/tmp" | |
DIR_server_GIT="$DIR_server/git" | |
#DIR_ENV="/saqib-deploy/server/env/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#client react | |
DIR_deploy="/srv" | |
DIR_client="$DIR_deploy/client" | |
DIR_client_WWW="/srv/server/www/$1" | |
DIR_client_tmp="$DIR_client/tmp" | |
DIR_client_GIT="$DIR_client/git" | |
#DIR_ENV="/saqib-deploy/client/env/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#client react | |
DIR_deploy="/srv" | |
DIR_client="$DIR_deploy/client" | |
DIR_client_WWW="$DIR_client/www" | |
DIR_client_tmp="$DIR_client/tmp" | |
DIR_client_GIT="$DIR_client/git" | |
#DIR_ENV="/saqib-deploy/client/env/" |