Re: [Cppcms-users] Issue with views.skins
Brought to you by:
artyom-beilis
From: Eric J. <jan...@gm...> - 2018-05-15 13:06:37
|
Hi Nazim, Thank you. It works now. Regards, *ERIC JANSEN* Sr. C/C++ Software Engineer On Tue, May 15, 2018 at 8:17 PM, Nazım Can Bedir <naz...@ne... > wrote: > Hello Eric, > > There is a typo in your config.json; > "default_skin" : "defskin", > "path" : [ "./" ], > "skins" : [ "cpp_defskin" ] > }, > "file_server" : { > "enable" : true, > > It should be "paths", not "path". > > Regards, > Nazim Can. > > > On 15/05/18 11:58, Eric Jansen wrote: > > Dear all, > > Need your assistance on the issue I encounter when running the webapp: > ./WebApp -c config.json > And the error shows as follow: > > Failed : When views.skins provided at least one search path should be > given in views.paths > 0x800c86a86: booster::stack_trace::trace(void**, int) + 0x26 in > /usr/local/lib/libbooster.so.0 > 0x8008f36c1: booster::backtrace::backtrace(unsigned long) + 0x61 in > /usr/local/lib/libcppcms.so.1 > 0x800933f6c: cppcms::views::manager::manager(cppcms::json::value const&) > + 0xb0c in /usr/local/lib/libcppcms.so.1 > 0x8008ea6d5: cppcms::service::setup(void) + 0x375 in > /usr/local/lib/libcppcms.so.1 > 0x8008eaa75: cppcms::service::service(int, char**) + 0xf5 in > /usr/local/lib/libcppcms.so.1 > 0x40540c: unsigned long + 0x2c in /usr/home/eric/www/test/output/WebApp > 0x4052df: _start + 0x17f in /usr/home/eric/www/test/output/WebApp > 0x800654000: ??? > > and my config.json: > > { > "WebSite" : { > "root" : "" , > "host" : "localhost:8080" , > "locdomain" : "localhost" > }, > "service" : { > "api" : "http", > "port" : 8080 > }, > "http" : { > "script" : "/test.fcgi" , > "rewrite" : [ > { "regex" : "/media(/.+)", "pattern" : "$1" }, > { "regex" : ".*" , "pattern" : "/test$0" } > ] > }, > "views" : { > "default_skin" : "defskin", > "path" : [ "./" ], > "skins" : [ "cpp_defskin" ] > }, > "file_server" : { > "enable" : true, > "listing" : true, > "document_root" : "./media" > } > } > > What am I missing? > Thank you and regards, > > *ERIC JANSEN* > Sr. C/C++ Software Engineer > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > Cppcms-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |