问题
I noticed in the g-wan User Manual pdf documentation as of 10/19/2012, http://gwan.ch/download that it says:
Updating servlets (C, C++, etc.) When you need to add or update servlets located in the csp directory you can do so without stopping G-WAN (all cached files are updated in real-time).
Yet when I start gwan, it appears to compile everything in the csp directory. That would be down right ugly on a system with 1000's of .c files. Anyway, I tried updating the hello.c file just to see what happens. When I access it again, the changes do not take. I have to restart the server. Also, if I put in a new servlet, like hello2.c, I get "The requested URL was not found on this server." until I restart the server?
what gives?
G-WAN 3.3.28 64-bit (Mar 28 2012 11:24:16) - the latest version I saw in the download as of Oct 19th, 2012
回答1:
This works for me. I'm running CentOS. The only issue I can find is with header files not updating.
I can't seem to replicate what you're experiencing. What OS are you on?
回答2:
Gil found the answer. It was permissions. (for the linux newbie like myself) The csp directory must have the same owner/group as how the gwan server is started.
sudo ./gwan -d:www-data:www-data
If started as above, the csp directory must also be www-data as owner and group along with the actual servlet file. In my case it was the hello.c file.
回答3:
Only applies to the next release which should be soon, version 3.10.x I believe. Search for the tag "g-wan" and you will see other threads where the new version is mentioned.
来源:https://stackoverflow.com/questions/12983523/g-wan-updating-servlets