[Cppcms-users] RES: RES: RES: RES: RES: RES: RES: Run on Windows 7
Brought to you by:
artyom-beilis
From: Renato F. <re....@ay...> - 2011-03-24 17:05:52
|
Now Work very well!!! Thanks a lot :0) De: Pavel Kropitz [mailto:un...@fu...] Enviada em: quinta-feira, 24 de março de 2011 12:24 Para: cpp...@li... Assunto: Re: [Cppcms-users] RES: RES: RES: RES: RES: RES: Run on Windows 7 hi, download cppcms from svn. there is blog/ directory - very good, more complex example to study. to config.js you need to add> "file_server" : { "enable" : true, "document_root" : "../" }, http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_config#file_server.docum ent_root compiled binary (from build/ direcotory) look to upper directory to find files. so in blog example template should look like <link href="/media/style-ltr.css" rel="stylesheet" type="text/css" /> (but you will find, that Artyom did it configurable :) On Thursday 24 March 2011, Renato Forti wrote: > Hi Pavel, Thanks for help. > > Now I using no web server, I am using only CPPCMS. > > > > Sorry my ignorance, but I dont understand what is document root and how > setup this. > > > > Is this: script > > { > > "service" : { > > "api" : "http", > > "port" : 8080 > > }, > > "http" : { > > "script" : "/" > > } > > } > > > > Any help ? Thanks |