r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!Cheyenne] Discussions about the Cheyenne Web Server

MikeL
18-Mar-2011
[9551]
I am using the example from the RSP API  - locale/set-lang 'fr
Dockimbel
18-Mar-2011
[9552x2]
I had also issues posting on AltMe today.
Have you put the LOCALES-DIR directive in a webapp definition?
MikeL
18-Mar-2011
[9554x2]
Yes 	webapp [
	
		virtual-root "/DocK"
		root-dir %www/DocK/

		locales-dir %www/DocK/catalogs/
		debug
	
	]
I tried a lot of combinations .... %catalogs %www/catalogs with the 
.cat files at all levels
Dockimbel
18-Mar-2011
[9556]
Have you restarted Cheyenne each time you changed the configuration 
file?
Janko
18-Mar-2011
[9557]
I don't remember exactly right now but I think when I used cheyenne 
in multilingual I had some problems with this too, and I hacked RSP.r 
(I think) I hardcoded some path to make it work .. it's a while
Dockimbel
18-Mar-2011
[9558]
MikeL: I'll write a small test using the example from the doc to 
see if there's something wrong there. I got localization working 
correctly in CureCode, but that's the only webapp where I used it, 
so unknows issues with paths are not excluded.
MikeL
18-Mar-2011
[9559x3]
Thanks Doc. Keep Red first priority though.
Some other things don't work for me ...  Jobs don't fire as documented.
When I get something working I will document in your Cheyenne wiki.
Dockimbel
18-Mar-2011
[9562x4]
Try with: locales-dir %DocK/catalogs/
That should be the correct path. Catalogs files must reside in their 
lang folders (catalogs/en/en.cat, catalogs/fr/fr.cat)
Jobs are quite experimental, but should be working in the general 
case (I'm using it on cheyenne-server.org to run a batch script every 
hour).
Testing the set-lang example locally, works ok here. With "locale/set-lang 
'fr" I get:
Bonjour Bonjour nous sommes en Mars

With "locale/set-lang 'en", I get: 
Bonjour Hello we are in March
Kaj
18-Mar-2011
[9566]
Is that modeled after Amiga catalogs? The file structure is exactly 
the same in Syllable :-)
Dockimbel
18-Mar-2011
[9567x2]
Maybe inspired by Amiga at an unconscious level when I wrote it. 
;-)
MikeL: I've upload my testing webapp, you can get it from: http://cheyenne-server.org/tmp/test-lang.zip
And this is the configuration I've used for it:

default [
	...
	webapp [
		virtual-root      "/test-lang"
		root-dir            %www/test-lang/
		locales-dir     %catalogs/
	]
]
MikeL
18-Mar-2011
[9569]
Thanks Doc. No luck so far. But will keep trying. I am running Win7 
binary cheyenne-r0920-pro.exe
Dockimbel
19-Mar-2011
[9570]
I've just tested with the same binary on Win7 32-bit...works ok.
MikeL
19-Mar-2011
[9571x2]
Thanks Doc.  Clearly something I'm doing wrong. I will work through 
it. .... Now back to Red! :-)
Works if I follow the instructions ... don't know which one went 
awry but functions per Doc-umentation.
Dockimbel
21-Mar-2011
[9573x2]
Cheyenne revision 126:


FIX: (Windows) issue with current OS path in source mode and REBOL 
v2.7.8.

FIX: (Windows) 'set-env function not redefined if already available 
as native.

FIX: (Windows) CGI now properly uses call.r instead of native CALL.


Windows binaries re-released on http://cheyenne-server.org/download.shtml
This new version was required to workaround the native CALL/OUTPUT 
corruption bug that was affecting CGI binary output in Cheyenne.
PeterWood
21-Mar-2011
[9575]
Many thanks Doc.
Dockimbel
22-Mar-2011
[9576]
You're welcome.
Maxim
15-Apr-2011
[9577]
this will seem like a dumb question but....


anyone know how I can get worker threads in cheyenne to actually 
open a console and allow on-screen tracing?


right now I've got 4 workers and no one opens up a console screen... 
I really need this real-time tracing, since the server is being monitored 
in real-time using remote-desktop or vnc.
GrahamC
15-Apr-2011
[9578]
- v v v v v v v v v v
Maxim
15-Apr-2011
[9579x2]
The main thread is running with -vvvvv and its showing some console... 
but I am expecting 5 console windows to open.
(one for each rebol process)
GrahamC
15-Apr-2011
[9581x2]
I think you only see one console
there's a single logging process I think
Maxim
15-Apr-2011
[9583x3]
my client had one console for each process on his cheyenne setup... 
I need to see what is happening independently from each other.  trying 
to follow 5 high-speed traces in a single file, is like using altme 
without any groups  it would be impossible.  ;-)


if one worker has a fuck up i need to be able to see why *it* is 
failing.
my client
  (as in a customer who was using cheyenne)
even more important in development
GrahamC
15-Apr-2011
[9586]
you can still set debug to the trace log
Maxim
15-Apr-2011
[9587]
but that is a single file for several thread... its impossible to 
use when there is traffic.
GrahamC
15-Apr-2011
[9588]
and it's failing somewhere?
Maxim
15-Apr-2011
[9589x3]
some processes will... right now I am implementing my own handler 
module, which means the code will be running in an external process. 
 I want that process (all four, in fact) to open its own console 
and print there.   


its MUCH simpler to debug, and follow what is happening.  trying 
to merge all the feedback from uniserve and all the threads in parralel 
is not optimal.
uniserve is working ok... its my code running outside of the uniserve 
process which will fail.
so I'm not using rsp, or cgi ... its my own handler.
sqlab
15-Apr-2011
[9592]
maybe a system/words/print or somethng like that
GrahamC
15-Apr-2011
[9593]
does each process have its own process id ?
Maxim
15-Apr-2011
[9594]
yeah they are physically different.
GrahamC
15-Apr-2011
[9595]
and the logging doesn't give the process id?
Maxim
15-Apr-2011
[9596]
I don't want logging... I need to look at it live... these services 
actually do network calls and wait on other servers... I need to 
look at them run each on their own... if one blocks... I don't want 
all the other logs to push of the view.


also, the worker process might be having mutually exclusive or causal 
side-effects.   with a different console view opened side-by-side 
its easy to see all these effects.  (one window jams when another 
runs... continues when the other is done... etc.
Dockimbel
16-Apr-2011
[9597]
To open a console window for each worker process, you need to change 
the CALL command line from %UniServe/uni-engine.r:

    call join form to-local-file system/options/boot [" -qws " cmd]

Replace:
* CALL with CALL/SHOW
* -qws with -s


Also, in that case it is also more practical to reduce the worker 
number to 1 using Cheyenne command line option: -w 1
Maxim
16-Apr-2011
[9598]
thanks doc.
onetom
17-Apr-2011
[9599]
guys, how can i get rid of these chey-pid-*.log files? or at least 
i would like to put them under a %log/ dir
Dockimbel
17-Apr-2011
[9600]
No way to redirect those log files yet. You can change their path 
by patching %cheyenne.r file. You can also just delete them once 
Cheyenne started, if all goes well, they shouldn't reappear until 
next restart.