File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1- # rules_devserver: A Bazel rule for running a development server
1+ # WIP: rules_devserver: Bazel rule for running a web development server
22
33This repository contains a Bazel rule for running a development server. It is
44intended 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.
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments