Skip to content

Commit 91f3bdb

Browse files
fix: issue of cannot post /login in local docker setup
1 parent 081e11f commit 91f3bdb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.env.local_dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ appName=open_sign_server
2020
# A 12 character long random secret key that allows access to all the data. It is used in Parse dashboard config to view all the data in the database.
2121
MASTER_KEY=XnAadwKxxByMr
2222
# Mongodb URI to connect to
23-
MONGODB_URI=mongodb://localhost:27017/OpenSignDB
23+
MONGODB_URI=mongodb://host.docker.internal:27017/OpenSignDB
2424
# Path on which APIs should be mounted. Do not change this. This variable shall be removed & value hardcoded in the source code in coming versions.
2525
PARSE_MOUNT=/app
2626
# Set it to the URL from where APIs will be accessible to the NodeJS functions, for local development it should be localhost:3000/api/app (use your local port number instead)

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
build:
22
cp .env.local_dev .env
3-
cd apps/OpenSign && npm install && npm run build
3+
cd apps/OpenSign && cp ../../.env.local_dev .env && npm install && npm run build
44
docker compose up --build --force-recreate
55

66
run:

apps/OpenSign/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ EXPOSE 3000
2121
# ENV NODE_ENV production
2222

2323
# Run the application
24-
ENTRYPOINT npm run start-dev
24+
ENTRYPOINT npm run start
2525

0 commit comments

Comments
 (0)