Skip to content

Commit caf8fdf

Browse files
committed
feat: Improve server management and production setup
- Added new target `up-logs` in Makefile to start server and show logs - Adjusted yarn workspaces command in Dockerfile to focus on all workspaces and run in production mode
1 parent 94ed643 commit caf8fdf

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ COPY package.json ./
142142
COPY --from=build /app/packages/backend/dist/skeleton.tar.gz ./
143143
RUN tar xzf skeleton.tar.gz && rm skeleton.tar.gz
144144

145+
COPY .yarnrc.yml ./
145146
RUN yarn workspaces focus --all --production && rm -rf "$(yarn cache clean)"
146147

147148
# Then copy the rest of the backend bundle, along with any other files we might want.

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ up:
5050
docker compose up -d
5151
open http://localhost:7007
5252

53+
up-logs:
54+
@echo "Starting the server at http://localhost:7007"
55+
docker compose up
56+
5357
down:
5458
docker compose down
5559

@@ -103,7 +107,9 @@ help:
103107
@echo " logs: Show logs"
104108
@echo " exec: Execute a command in the backstage container"
105109
@echo " up: Start the server"
110+
@echo " up-logs: Start the server and show logs"
106111
@echo " down: Stop the server"
112+
@echo " run: Run a command in the backstage container"
107113
@echo " build: Build the Docker image"
108114
@echo " publish: Build and publish the Docker image"
109115
@echo " version: Show the current version"

0 commit comments

Comments
 (0)