Skip to content

Commit

Permalink
fix: update climate wallet use port 31314
Browse files Browse the repository at this point in the history
  • Loading branch information
ahwei committed Nov 4, 2022
1 parent 43b93fa commit 4560dff
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
CLIMATE_SERVICE=http://localhost:31312
CLIMATE_SERVICE=http://localhost
CLIMATE_SERVICE_PORT=31314
CLIMATE_WAREHOUSE=https://api.climatewarehouse.chia.net
5 changes: 0 additions & 5 deletions .env.submodule
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
SERVER_HOST="0.0.0.0"
SERVER_PORT="31312"
BLOCK_START="1500000"
BLOCK_RANGE="10000"
CLIMATE_API_URL="https://api.climatewarehouse.chia.net"
MODE="client"
2 changes: 1 addition & 1 deletion climate-token-driver
2 changes: 1 addition & 1 deletion src/electron/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ const killTokenPort = (port) => {

//app start here
app.on('ready', () => {
killTokenPort(31312)
killTokenPort(process.env.CLIMATE_SERVICE_PORT || '31314')

app.applicationMenu = createMenu()
})
Expand Down
5 changes: 2 additions & 3 deletions src/services/climateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ import {
TX,
} from '@/types/ClimateServiceType'
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'
import { ObjectEncodingOptions } from 'fs'

export const serviceURL = process.env.CLIMATE_SERVICE

export const serviceURL = `${process.env.CLIMATE_SERVICE}:${process.env.CLIMATE_SERVICE_PORT}`
console.log('serviceURL', serviceURL)
export const climateServiceApi = createApi({
reducerPath: 'climateServiceApi',
baseQuery: fetchBaseQuery({ baseUrl: serviceURL }),
Expand Down

0 comments on commit 4560dff

Please sign in to comment.