Skip to content

Commit 5f13561

Browse files
committed
Small cosmetic changes
1 parent 29248c0 commit 5f13561

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# rules_devserver: A Bazel rule for running a development server
1+
# WIP: rules_devserver: Bazel rule for running a web development server
22

33
This repository contains a Bazel rule for running a development server. It is
44
intended to be used for local development, and is not intended for production
5-
use.
5+
use.
6+
7+
This is WIP. It is not yet ready for use.

devserver/main.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ int main(int argc, char **argv) {
2525
httplib::Server svr;
2626

2727
std::string workspace_name = kWorkspaceName;
28+
2829
std::string runfiles_error;
2930
std::unique_ptr<Runfiles> runfiles(
3031
Runfiles::Create(argv[0], BAZEL_CURRENT_REPOSITORY, &runfiles_error));
@@ -62,13 +63,13 @@ int main(int argc, char **argv) {
6263
DEBUG_LOG("package_name: " << args::get(package_name));
6364
}
6465

65-
std::string path = runfiles->Rlocation(workspace_name + "/");
66+
const std::string path = runfiles->Rlocation(workspace_name + "/");
6667

67-
std::string static_file_contents;
6868
const std::string static_file_path =
6969
path + args::get(package_name) + "/" + args::get(static_file);
70+
DEBUG_LOG("static_file_path: " << static_file_path);
7071

71-
DEBUG_LOG("static_file_path: " << static_file_path)
72+
std::string static_file_contents;
7273
static_file_contents = GetFileContents(static_file_path);
7374
DEBUG_LOG("static_file_contents: " << static_file_contents)
7475

0 commit comments

Comments
 (0)