Skip to content

Commit

Permalink
Merge branch 'DefiLlama:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
nova577metaverse authored Dec 13, 2024
2 parents 3aa79ba + 95dcf47 commit 64151f7
Show file tree
Hide file tree
Showing 47 changed files with 7,385 additions and 4,146 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,34 @@ name: Deploy

on:
push:
branches: [ master ]
branches: [master]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get Node.js
uses: actions/setup-node@v1
with:
node-version: '16'
- run: npm ci
- name: Type Check
run: npm run ts
- name: Deploy infrastructure stack
run: npm run deploy:prod
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
PSQL_URL: ${{ secrets.PSQL_URL }}
PSQL_USERNAME: ${{ secrets.PSQL_USERNAME }}
PSQL_PW: ${{ secrets.PSQL_PW }}
BSC_RPC: ${{ secrets.BSC_RPC }}
CELO_RPC: ${{ secrets.CELO_RPC }}
ETHEREUM_RPC: ${{ secrets.ETHEREUM_RPC }}
OPTIMISM_RPC: ${{ secrets.OPTIMISM_RPC }}
AURORA_RPC: ${{ secrets.AURORA_RPC }}
ARBITRUM_RPC: ${{ secrets.ARBITRUM_RPC }}
SOLANA_RPC: ${{ secrets.SOLANA_RPC }}
RSK_ARCHIVAL_RPC: ${{ secrets.RSK_ARCHIVAL_RPC }}
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
- uses: actions/checkout@v2
- name: Get Node.js
uses: actions/setup-node@v1
with:
node-version: "18"
- run: npm ci
- name: Type Check
run: npm run ts
- name: Deploy infrastructure stack
run: npm run deploy:prod
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
PSQL_URL: ${{ secrets.PSQL_URL }}
PSQL_USERNAME: ${{ secrets.PSQL_USERNAME }}
PSQL_PW: ${{ secrets.PSQL_PW }}
BSC_RPC: ${{ secrets.BSC_RPC }}
CELO_RPC: ${{ secrets.CELO_RPC }}
ETHEREUM_RPC: ${{ secrets.ETHEREUM_RPC }}
OPTIMISM_RPC: ${{ secrets.OPTIMISM_RPC }}
AURORA_RPC: ${{ secrets.AURORA_RPC }}
ARBITRUM_RPC: ${{ secrets.ARBITRUM_RPC }}
RSK_ARCHIVAL_RPC: ${{ secrets.RSK_ARCHIVAL_RPC }}
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
ALLIUM_API_KEY: ${{ secrets.ALLIUM_API_KEY }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ src/utils/filljobs2.ts

.idea

.vscode
.vscoded

dist
21 changes: 21 additions & 0 deletions ecosystem.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
apps: [
{
name: "bridges-server",
script: "dist/index.cjs",
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: "1G",
env: {
NODE_ENV: "production",
},
error_file: "logs/err.log",
out_file: "logs/out.log",
restart_delay: 4000,
kill_timeout: 3000,
exp_backoff_restart_delay: 100,
max_restarts: 10,
},
],
};
Loading

0 comments on commit 64151f7

Please sign in to comment.