Skip to content

Commit

Permalink
feat core: don't use config_dev.yaml by default
Browse files Browse the repository at this point in the history
commit_hash:fa275c966ec6e0926a86e9c55469f74f43b1d715
  • Loading branch information
Anton3 committed Nov 25, 2024
1 parent 80ac399 commit 6071c7f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions core/src/utils/daemon_run.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ int DaemonMain(const int argc, const char* const argv[], const components::Compo

po::variables_map vm;
po::options_description desc("Allowed options");
std::string config_path = "config_dev.yaml";
std::string config_path;
std::string config_vars_path;
std::string config_vars_override_path;

Expand All @@ -40,7 +40,7 @@ int DaemonMain(const int argc, const char* const argv[], const components::Compo
("help,h", "produce this help message")
("print-config-schema", "print config.yaml YAML Schema")
("print-dynamic-config-defaults", "print JSON object with dynamic config defaults")
("config,c", po::value(&config_path)->default_value(config_path), "path to server config")
("config,c", po::value(&config_path)->required(), "path to server config")
("config_vars", po::value(&config_vars_path), "path to config_vars.yaml; if set, config_vars in config.yaml are ignored")
("config_vars_override", po::value(&config_vars_override_path), "path to an additional config_vars.yaml, which overrides vars of config_vars.yaml")
;
Expand Down
1 change: 0 additions & 1 deletion scripts/docs/en/userver/tutorial/hello_service.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ paths in the configuration files and starts the service.
To start the service manually run
`./samples/hello_service/userver-samples-hello_service -c </path/to/static_config.yaml>`.

@note Without file path to `static_config.yaml` `userver-samples-hello_service` will look for a file with name `config_dev.yaml`
@note CMake doesn't copy `static_config.yaml` and file from `samples` directory into build directory.

Now you can send a request to your server from another terminal:
Expand Down
1 change: 0 additions & 1 deletion scripts/docs/en/userver/tutorial/multipart_service.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ paths in the configuration files and starts the service.
To start the service manually run
`./samples/multipart_service/userver-samples-multipart_service -c </path/to/static_config.yaml>`.

@note Without file path to `static_config.yaml` `userver-samples-multipart_service` will look for a file with name `config_dev.yaml`
@note CMake doesn't copy `static_config.yaml` files from `samples` directory into build directory.

Now you can send a request to your server from another terminal:
Expand Down
1 change: 0 additions & 1 deletion scripts/docs/en/userver/tutorial/websocket_service.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ paths in the configuration files and starts the service.
To start the service manually run
`./samples/websocket_service/userver-samples-websocket_service -c </path/to/static_config.yaml>`.

@note Without file path to `static_config.yaml` `userver-samples-websocket_service` will look for a file with name `config_dev.yaml`
@note CMake doesn't copy `static_config.yaml` file from `samples` directory into build directory.

Now you can send messages to your server from another terminal:
Expand Down

0 comments on commit 6071c7f

Please sign in to comment.