Skip to content
This repository was archived by the owner on Sep 14, 2021. It is now read-only.

Commit 7cf7a8e

Browse files
committed
update env
1 parent a08c1ba commit 7cf7a8e

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

api/src/lib/guild.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { db } from './db'
2+
3+
const fetchGuild = async (data) => {
4+
const { platformId } = data
5+
let guild = await db.guild.findFirst({ where: platformId })
6+
if (!guild) {
7+
guild = await db.guild.create(data)
8+
}
9+
return guild
10+
}

bot/.template.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
DISCORD_TOKEN=
22
INVOCATION_STRING=!kneel,!unlock
3-
API_URL=http://localhost:8911/graphql
3+
LOGIN_URL=http://0.0.0.0:8910/login
4+
API_URL=http://0.0.0.0:8911/graphql

redwood.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77

88
[web]
99
port = 8910
10+
host = "0.0.0.0"
1011
apiProxyPath = "/api"
1112
[api]
1213
port = 8911
14+
host = "0.0.0.0"
1315
schemaPath = "./api/db/schema.prisma"
1416
includeEnvironmentVariables=['INFURA_ENDPOINT_KEY','XDAI_RPC_URL', 'COLLAB_LAND_APP_ID', 'COLLAB_LAND_APP_SECRET']
1517
[browser]

0 commit comments

Comments
 (0)