Re: [Cppcms-users] RES: RES: RES: RES: RES: RES: Run on Windows 7
Brought to you by:
artyom-beilis
|
From: Pavel K. <un...@fu...> - 2011-03-24 15:24:09
|
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.document_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
|