mirror of
https://github.com/Permissionless-Software-Foundation/psf-memo-indexer.git
synced 2026-09-21 16:52:02 -07:00
fixing front end client
This commit is contained in:
@@ -49,6 +49,7 @@ services:
|
|||||||
|
|
||||||
memo-client:
|
memo-client:
|
||||||
build: ./memo-client
|
build: ./memo-client
|
||||||
|
image: memo-client
|
||||||
container_name: memo-client
|
container_name: memo-client
|
||||||
logging:
|
logging:
|
||||||
driver: json-file
|
driver: json-file
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
# psf-memo-db REST API base URL (no trailing slash).
|
||||||
|
# Baked into the SPA when the memo-client image is built.
|
||||||
|
# Example: https://api.mydomain.com
|
||||||
|
#
|
||||||
|
# Usage:
|
||||||
|
# cp .env-example .env
|
||||||
|
# # edit REACT_APP_MEMO_DB_URL
|
||||||
|
# docker compose build memo-client
|
||||||
|
REACT_APP_MEMO_DB_URL=http://localhost:5021
|
||||||
@@ -30,6 +30,10 @@ WORKDIR /home/safeuser/psf-memo-client
|
|||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
|
# Create React App reads REACT_APP_* from this .env at build time.
|
||||||
|
# Edit production/docker/memo-client/.env before building.
|
||||||
|
COPY .env .env
|
||||||
|
|
||||||
# Build the site
|
# Build the site
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user