Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
[indexer] move indexer to its own app and modify ci
Browse files Browse the repository at this point in the history
  • Loading branch information
YBadiss committed Mar 24, 2024
1 parent a76aa70 commit 2799432
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/backend-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
team: ${{ vars.HEROKU_TEAM_NAME }}
heroku_email: ${{ vars.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ vars.HEROKU_APP_NAME }}
heroku_app_name: ${{ vars.HEROKU_BACKEND_APP_NAME }}
appdir: fc-community-backend/apps/api
healthcheck: ${{ vars.HEROKU_URL }}
checkstring: "OK"
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/indexer-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Indexer Deployment
on:
push:
branches: [ main ]
paths: [ fc-community-indexer/** ]
workflow_dispatch:
jobs:
deploy-indexer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Deploy on Heroku
uses: akhileshns/[email protected]
with:
team: ${{ vars.HEROKU_TEAM_NAME }}
heroku_email: ${{ vars.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ vars.HEROKU_INDEXER_APP_NAME }}
appdir: fc-community-indexer
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"scripts": {
"build": "tsc",
"dev": "tsc && node --env-file=.env dist/main.js",
"start": "node --env-file=.env dist/main.js",
"start": "node main.ts",
"prettier": "prettier --write --ignore-unknown \"{config,public,src}/**/*.{html,css,js,ts,json}\"",
"prettier:check": "prettier -l --ignore-unknown \"{config,public,src}/**/*.{html,css,js,ts,json}\""
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class FactchainContract {
export const supportedNetworks = [
{
name: "Ethereum Sepolia",
rpcUrl: process.env.ETHEREUM_SEPOLIA_RPC_URL,
rpcUrl: process.env.ETHEREUM_SEPOLIA_INFRA_RPC_URL,
contracts: [
new FactchainContract(
"0x3b5946b3bd79c2B211E49c3149872f1d66223AE7",
Expand Down Expand Up @@ -870,7 +870,7 @@ export const supportedNetworks = [
},
{
name: "Base Mainnet",
rpcUrl: process.env.BASE_MAINNET_RPC_URL,
rpcUrl: process.env.BASE_MAINNET_INFRA_RPC_URL,
contracts: [
new FactchainContract(
"0xde31FB31adeB0a97E34aCf7EF4e21Ad585F667f7",
Expand Down

0 comments on commit 2799432

Please sign in to comment.