Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Boldizsar Mezei committed Jul 1, 2024
1 parent 4d007d7 commit 3ea8f4f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 18 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/action_deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
run: echo "$ENV_VARS" > .env
env:
ENV_VARS: ${{ secrets.ENV_VARS }}
- name: Build image
run: |
cp packages/search/Dockerfile .
gcloud builds submit --tag gcr.io/$GOOGLE_CLOUD_PROJECT/search
# - name: Build image
# run: |
# cp packages/search/Dockerfile .
# gcloud builds submit --tag gcr.io/$GOOGLE_CLOUD_PROJECT/search
- name: Deploy
run: |
gcloud run deploy search \
Expand Down
17 changes: 17 additions & 0 deletions packages/functions/.env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ENVIRONMENT=test
PROJECT_ID=google-project-id
NFT_STORAGE_TOKEN=yourneftstoragetokne
JWT_SECRET=yourjwtsecret
ALGOLIA_APPID=your_algolia_app_id
ALGOLIA_KEY=your_algolia_key
ENCRYPTION_SALT=yout_encryption_salt
IP_INFO_TOKEN=your_ip_info_token
NEYNAR_API_KEY=your_neynary_key

DB_USER=db_user
DB_USER_PWD=db_pwd
DB_NAME=buildcore
DB_HOST=db-server-host
DB_PORT=5432

GOOGLE_APPLICATION_CREDENTIALS='path-to-your-credentials-file'
9 changes: 4 additions & 5 deletions packages/functions/deploy.script.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable import/namespace */
require('dotenv').config();
import fs from 'fs';
import { flattenObject } from './src/common';
import { CloudFunctions } from './src/runtime/common';
Expand All @@ -21,10 +20,10 @@ fs.appendFileSync(

fs.appendFileSync(file, `\n`);

const buildImage = () => {
fs.appendFileSync(file, 'cp packages/functions/Dockerfile ./Dockerfile\n\n');
fs.appendFileSync(file, 'gcloud builds submit --tag gcr.io/$GOOGLE_CLOUD_PROJECT/functions\n\n');
};
// const buildImage = () => {
// fs.appendFileSync(file, 'cp packages/functions/Dockerfile ./Dockerfile\n\n');
// fs.appendFileSync(file, 'gcloud builds submit --tag gcr.io/$GOOGLE_CLOUD_PROJECT/functions\n\n');
// };

const deployServices = () => {
Object.entries({
Expand Down
13 changes: 4 additions & 9 deletions packages/functions/src/services/wallet/wallet.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,10 @@ export interface AddressDetails {
}

const NODES = {
[Network.SMR]: ['https://smr1.svrs.io/', 'https://smr3.svrs.io/'],
[Network.RMS]: ['https://rms1.svrs.io/', 'https://rms1.svrs.io/'],
[Network.IOTA]: [
'https://us3.svrs.io/',
'https://us4.svrs.io/',
'https://hs5.svrs.io/',
'https://hs6.svrs.io/',
],
[Network.ATOI]: ['https://rms1.svrs.io/'],
[Network.SMR]: process.env.SMR_NODES!.split(','),
[Network.RMS]: process.env.RMS_NODES!.split(','),
[Network.IOTA]: process.env.IOTA_NODES!.split(','),
[Network.ATOI]: process.env.ATOI_NODES!.split(','),
};

export const tangleClients: { [key: string]: Client } = {};
Expand Down

0 comments on commit 3ea8f4f

Please sign in to comment.