Skip to content

Commit 41b4411

Browse files
fix: Set ASPNETCORE_ENVIRONMENT=Development in start.sh
- Backend needs Development environment for /api/dev/reseed endpoint - Without this, endpoint returns 404 and data seeding fails - Now automatically seeds full dataset on startup: * 448 invoices * 167 jobs * £134,896.99 outstanding invoices * Full dashboard data
1 parent 3eb27cb commit 41b4411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ start_backend() {
3939

4040
if [ -n "$api_dir" ]; then
4141
echo -e "${GREEN}Starting backend in $api_dir on http://localhost:${BACKEND_PORT}${NC}"
42-
(cd "$api_dir" && ENABLE_DEV_RESEED=true dotnet run --urls "http://localhost:${BACKEND_PORT}") &
42+
(cd "$api_dir" && ASPNETCORE_ENVIRONMENT=Development ENABLE_DEV_RESEED=true dotnet run --urls "http://localhost:${BACKEND_PORT}") &
4343
PIDS+=("$!")
4444
else
4545
echo -e "${YELLOW}No backend directory found (api/ or backend/). Skipping backend start.${NC}"

0 commit comments

Comments
 (0)