Added an option to set the deployment path. Fixes #41

This commit is contained in:
emeric
2020-03-29 20:07:52 +02:00
parent 3727c64a13
commit eb20ade14d
4 changed files with 6 additions and 2 deletions
@@ -36,7 +36,7 @@ class SubsonicResource final : public Wt::WResource
public:
SubsonicResource(Database::Db& db);
static std::string getPath() { return "/rest/"; }
static std::string getPath() { return "rest/"; }
private:
void handleRequest(const Wt::Http::Request &request, Wt::Http::Response &response) override;
+1
View File
@@ -48,6 +48,7 @@ std::vector<std::string> generateWtConfig(std::string execPath)
args.push_back("--config=" + wtConfigPath.string());
args.push_back("--docroot=" + ServiceProvider<IConfig>::get()->getString("docroot"));
args.push_back("--approot=" + ServiceProvider<IConfig>::get()->getString("approot"));
args.push_back("--deploy-path=" + ServiceProvider<IConfig>::get()->getString("deploy-path", "/"));
args.push_back("--resources-dir=" + ServiceProvider<IConfig>::get()->getString("wt-resources"));
if (ServiceProvider<IConfig>::get()->getBool("tls-enable", false))