Skip to content

Commit 2954748

Browse files
committed
quick dependency fix
1 parent 026b2aa commit 2954748

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

backend/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1717
&& apt-get clean
1818

1919
# Install Node.js 18 (for Firebase)
20-
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
20+
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
2121
apt-get install -y --no-install-recommends nodejs
2222

2323
# Verify installations
@@ -47,7 +47,7 @@ COPY . .
4747
# Expose Firebase Emulator ports, including Web UI (4000)
4848
EXPOSE 4000 5001 8080 9099 5000 9199
4949

50-
RUN firebase --version
51-
RUN which firebase
50+
# RUN firebase --version
51+
# RUN which firebase
5252

5353
CMD ["firebase", "emulators:start", "--project", "twocube-web"]

run_all.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,18 @@
44
#
55
# Runs both the frontend (Angular dev mode) and backend (Firebase).
66
# Update commands/path if your project or run commands differ.
7+
echo "=== Starting Olaf Backend (Firebase) ==="
8+
cd backend || exit
9+
chmod +x run_firebase.sh
10+
./run_firebase.sh &
711

812
echo "=== Starting Olaf Frontend in Development Mode ==="
9-
cd frontend || exit
13+
cd ../frontend || exit
1014
npm install
1115
npm run dev & # run in the background
1216

1317
echo "Frontend started in background."
1418
echo
15-
16-
echo "=== Starting Olaf Backend (Firebase) ==="
17-
cd backend || exit
18-
chmod +x run_firebase
19-
./run_firebase
20-
2119
# Once Firebase stops or is killed, the script ends.
2220
# If you want to also kill the frontend automatically upon exit,
2321
# you can track its PID and kill it here.

0 commit comments

Comments
 (0)