Daniel Kantor
commited on
Commit
·
b62eda1
1
Parent(s):
79ac604
- Dockerfile +0 -2
- frontend/src/config/auth.js +2 -0
Dockerfile
CHANGED
@@ -59,7 +59,5 @@ ENV HF_HOME=/app/.cache \
|
|
59 |
USER user
|
60 |
EXPOSE 7860
|
61 |
|
62 |
-
RUN echo $OAUTH_CLIENT_ID
|
63 |
-
|
64 |
# Start both servers with wait-for
|
65 |
CMD ["sh", "-c", "uvicorn app.asgi:app --host 0.0.0.0 --port 7861 & while ! nc -z localhost 7861; do sleep 1; done && cd frontend && npm run serve"]
|
|
|
59 |
USER user
|
60 |
EXPOSE 7860
|
61 |
|
|
|
|
|
62 |
# Start both servers with wait-for
|
63 |
CMD ["sh", "-c", "uvicorn app.asgi:app --host 0.0.0.0 --port 7861 & while ! nc -z localhost 7861; do sleep 1; done && cd frontend && npm run serve"]
|
frontend/src/config/auth.js
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
export const HF_CONFIG = {
|
2 |
CLIENT_ID: process.env.OAUTH_CLIENT_ID,
|
3 |
STORAGE_KEY: "hf_oauth",
|
|
|
1 |
+
console.log(JSON.stringify(process.env));
|
2 |
+
|
3 |
export const HF_CONFIG = {
|
4 |
CLIENT_ID: process.env.OAUTH_CLIENT_ID,
|
5 |
STORAGE_KEY: "hf_oauth",
|