Skip to content

Commit 2ff44fd

Browse files
authored
Merge pull request #99 from SPWwj/main
Fix home page layout issue and start.sh not overwrite .env
2 parents 36a2255 + 3627798 commit 2ff44fd

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

frontend/src/presentation/pages/HomePage.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
display: flex;
33
flex-direction: row;
44
width: 100%;
5+
height: 100%;
56
}
67

78
.leftContainer, .rightContainer {

start.sh

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#!/bin/bash
22

3+
# Copy .env.example to .env, overwriting if .env exists
4+
find . -name ".env.example" | while read -r EXAMPLE_FILE; do
5+
ENV_FILE="${EXAMPLE_FILE%.example}"
6+
cp "$EXAMPLE_FILE" "$ENV_FILE"
7+
echo "Replaced or created .env from .env.example at $ENV_FILE"
8+
done
9+
310
# Define the docker-compose files with relative paths
411
COMPOSE_FILES=(
512
"./docker-compose.yml"
@@ -14,12 +21,3 @@ for FILE in "${COMPOSE_FILES[@]}"; do
1421
echo "File not found: $FILE"
1522
fi
1623
done
17-
18-
# Copy .env.example to .env if .env does not exist
19-
find . -name ".env.example" | while read -r EXAMPLE_FILE; do
20-
ENV_FILE="${EXAMPLE_FILE%.example}"
21-
if [ ! -f "$ENV_FILE" ]; then
22-
cp "$EXAMPLE_FILE" "$ENV_FILE"
23-
echo "Created .env from .env.example at $ENV_FILE"
24-
fi
25-
done

0 commit comments

Comments
 (0)