-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.env
56 lines (49 loc) · 1.96 KB
/
bootstrap.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env bash
export BUILD_ADAPTER='node'
export APP_PATH=/usr/src/app
export COLOR=true
export FORCE_COLOR=true
export PORT=3333
export HOST=0.0.0.0
export APP_NAME=Cognition
export SERVICE_NAME=frontend
export SERVICE_PORT=$PORT
export VITE_URL="https://cognition.fluent.finance"
export VITE_GATEWAY_URL="https://gatewayapi.fluent.finance/v1/gateway/balances"
export APP_ENV=development
export NODE_ENV=production
export NODE_OPTIONS="--max-old-space-size=4096"
export USPLUS_CELO=0xd44D005d48e2C64Cbc52bdecf03Ec35865609685
export USPLUS_ARBITRUM=0x41e420102B9497fACAa815cCB3D9E88Fcc545C0C
export USPLUS_ETHEREUM=0xE2e15a27fD732a96534B9797bf8091f3D9849831
export FLUENT_PORT=$PORT
export FLUENT_HOST=$HOST
export VITE_FLUENT_CONSUMER_URL='https://app.fluent.finance'
export VITE_FLUENT_MEDIUM_URL='https://fluentfinance.medium.com'
export VITE_FLUENT_WHITEPAPER_URL='https://docsend.com/view/4zjd678kaifqy7jf'
export VITE_FLUENT_DISCORD_URL='https://discord.gg/22ywcEfU65'
export VITE_FLUENT_TWITTER_URL='https://twitter.com/fluentdao'
export VITE_FLUENT_LINKEDIN_URL='https://www.linkedin.com/company/fluent-finance'
export VITE_FLUENT_GITHUB_URL='https://github.com/Fluent-Finance'
export VITE_FLUENT_ETHERSCAN_URL='https://etherscan.io/token/0xe2e15a27fd732a96534b9797bf8091f3d9849831'
export VAULT=MetaMeme
export DATABASE_URL="op://$VAULT/$APP_NAME-$APP_ENV/Database/url"
export ALCHEMNY_API_KEY="op://$VAULT/$APP_NAME-$APP_ENV/Alchemy/api_key"
export ALCHEMNY_API_URL="op://$VAULT/$APP_NAME-$APP_ENV/Alchemy/api_url"
alias buildcog="docker buildx build -f Dockerfile \
--ssh default \
--platform linux/arm64 \
--build-arg APP_ENV=$APP_ENV \
--build-arg APP_PORT=$PORT \
--build-arg APP_HOST=$APP_ENV \
--build-arg SERVICE_NAME=$SERVICE_NAME \
--build-arg APP_LOG_LEVEL=$LOG_LEVEL \
--tag 'cognition:latest' \
."
alias runcog="docker run -it \
--label cognition \
--name cognition \
--env-file build.env \
-p 0.0.0.0:3333:3333/tcp \
--rm \
-t cognition:latest"