Skip to content

Commit 81b6a50

Browse files
committed
Refactor HTTP server implementation to use 'src/main.cpp' as the entry point and update related scripts to execute the new server binary. Adjust CMake configuration to link against 'http-server' instead of 'server'. Update README and .gitignore files accordingly.
1 parent 42ce16f commit 81b6a50

File tree

29 files changed

+3071
-77
lines changed

29 files changed

+3071
-77
lines changed

compiled_starters/c/.codecrafters/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
set -e # Exit on failure
1010

11-
exec $(dirname $0)/build/http-server "$@"
11+
exec $(dirname "$0")/build/http-server "$@"

compiled_starters/c/your_program.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ set -e # Exit early if any commands fail
2222
#
2323
# - Edit this to change how your program runs locally
2424
# - Edit .codecrafters/run.sh to change how your program runs remotely
25-
exec $(dirname $0)/build/http-server "$@"
25+
exec $(dirname "$0")/build/http-server "$@"

compiled_starters/cpp/.codecrafters/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
set -e # Exit on failure
1010

11-
exec ./build/server "$@"
11+
exec $(dirname "$0")/build/http-server "$@"

0 commit comments

Comments
 (0)