Skip to content

Commit 23d29a0

Browse files
authored
Merge pull request #409 from CodeForPhilly/develop
Release: v1.1.2 ## Improvements The latest update redirects traffic to the new Code for Philly URL instead of localhost. I handled it by adding a .env.production file, which Vite automatically uses during npm run build to generate the build with the correct URL. ## Technical Added .env.production
2 parents 4b7a417 + 685c70a commit 23d29a0

File tree

8 files changed

+114
-181
lines changed

8 files changed

+114
-181
lines changed

config/env/prod.env.example

Lines changed: 0 additions & 16 deletions
This file was deleted.

deploy/manifests/balancer/base/secret.template.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ type: Opaque
1515
stringData:
1616
DATABASE: postgres
1717
DEBUG: '1'
18-
DJANGO_ALLOWED_HOSTS: localhost 127.0.0.1 [::1] balancer.sandbox.k8s.phl.io
1918
LOGIN_REDIRECT_URL: ''
2019
OPENAI_API_KEY: openapi_key_here
2120
PINECONE_API_KEY: pinecone_key_here

docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
services:
22
db:
3+
# Workaround for PostgreSQL crash with pgvector v0.6.1 on ARM64
4+
# image: pgvector/pgvector:pg15
5+
# volumes:
6+
# - postgres_data:/var/lib/postgresql/data/
7+
# - ./db/init-vector-extension.sql:/docker-entrypoint-initdb.d/init-vector-extension.sql
38
build:
49
context: ./db
510
dockerfile: Dockerfile
@@ -20,10 +25,6 @@ services:
2025
# environment:
2126
# PGADMIN_DEFAULT_EMAIL: [email protected]
2227
# PGADMIN_DEFAULT_PASSWORD: balancer
23-
# # PGADMIN_LISTEN_PORT = 80
24-
# # volumes:
25-
# # - ./pgadmin-data:/var/lib/pgadmin
26-
# # # PGADMIN_LISTEN_PORT = 80
2728
# ports:
2829
# - "5050:80"
2930
# networks:
@@ -55,7 +56,6 @@ services:
5556
- "3000:3000"
5657
environment:
5758
- CHOKIDAR_USEPOLLING=true
58-
# - VITE_API_BASE_URL=https://balancertestsite.com/
5959
volumes:
6060
- "./frontend:/usr/src/app:delegated"
6161
- "/usr/src/app/node_modules/"

frontend/.env.production

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_API_BASE_URL=https://balancer.live.k8s.phl.io/

frontend/src/components/Header/Header.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const Header: React.FC<LoginFormProps> = ({ isAuthenticated, isSuperuser }) => {
101101
return (
102102
<header className="z-50 fixed w-full items-center no-print">
103103
<div className="w-full items-center justify-center border-b border-gray-300 bg-blue-100 p-1 text-center text-sm font-light text-gray-500 lg:flex">
104-
<p className="">
104+
<p className="hidden md:block">
105105
Welcome to Balancer’s first release! Found a bug or have feedback? Let us know {" "}
106106
<Link
107107
to="/feedback"
@@ -115,6 +115,13 @@ const Header: React.FC<LoginFormProps> = ({ isAuthenticated, isSuperuser }) => {
115115
</a>
116116
.
117117
</p>
118+
<p className="sm:block md:hidden">
119+
App is in beta; report issues to {" "}
120+
<a href="mailto:[email protected]" className="underline hover:border-blue-600 hover:text-blue-600 hover:no-underline">
121+
122+
</a>
123+
.
124+
</p>
118125
</div>
119126
<div
120127
className={

frontend/src/pages/Help/DataSources.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const data: DataProps = {
2222
function HowTo() {
2323
return (
2424
<Layout>
25-
<div className="mt-20 flex w-full max-w-6xl flex-col items-center justify-center px-8">
25+
<div className="mt-20 flex min-w-[445px] w-full max-w-6xl flex-col items-center justify-center px-8">
2626
<div className="mt-10 h-44 w-44">
2727
<LineChart />
2828
</div>

0 commit comments

Comments
 (0)