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

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.
onetom
17-Apr-2011
[9601]
thx, doc. we are working on all win/lin/mac and i don't have the 
sdk :/ i was advertising cheyenne as an awesome, simple, cross-platform 
solution which is just 1 exe + 1 config and now i should either run 
from source or wrap it :/
Dockimbel
17-Apr-2011
[9602]
As a quick fix, I can patch %cheyenne.r to redirect %chey-pid* files 
to %log/ folder and upload a new Windows/Linux binary (OS X would 
take more time). Would that suit your needs?
onetom
17-Apr-2011
[9603x5]
well, it sounds awesome for me, but i don't know about the others
our main development platform is mac, though
and btw, i tried to run it from source and i got this
Script: "Cheyenne Web Server" (2-Mar-2011)
Script: "Encap virtual filesystem" (21-Sep-2009)

** Access Error: Cannot open /Users/onetom/rebol/cheyenne-server-read-only/Cheyenne/libc.dylib
** Where: do-cache
** Near: all [
    libc: load/library %libc.dylib
onetom ~/rebol/cheyenne-server-read-only/Cheyenne $ svn up
At revision 127.
Dockimbel
17-Apr-2011
[9608x2]
I'll boot my Mac 10.6 image (takes some time) and test it from source.
Will probably do that in a couple of hours (after lunch).
onetom
17-Apr-2011
[9610]
good apetite, im having lunch-dinner too. tom yam kung soup. i'd 
be happy to invite u to have some :)
Dockimbel
17-Apr-2011
[9611]
I would be pleased, but unfortunately, Phuket is a bit far from Paris. 
:-)
onetom
17-Apr-2011
[9612x2]
half a day... think about it ;)
Dockimbel: i sent u an email with some background story which can 
help to think about a good solution
Maxim
17-Apr-2011
[9614]
feature request :  I would loke to have some configs (in httpd.cfg) 
for controling things like the verbosity and logging.
onetom
17-Apr-2011
[9615]
i would help making these patches but i can't run cheyenne (on a 
mac) from source. can u, maxim?
Maxim
17-Apr-2011
[9616]
I'm just doing windows these days.
Dockimbel
17-Apr-2011
[9617x2]
Cheyenne source & OS X: I can reproduce the error. Looking for the 
cause...
OK, the right path for the Libc is: %/usr/lib/libc.dylib
onetom
17-Apr-2011
[9619x2]
why do we need it at all?
rebol/core can't use libs anyway, can it?
Dockimbel
17-Apr-2011
[9621]
No, it can't on OS X.
Maxim
17-Apr-2011
[9622]
but pro can no?
Dockimbel
17-Apr-2011
[9623x2]
Pro: yes
/Library component is needed on UNIX (including OS X) to map: set-uid, 
set-gid, chown, kill and get-pid
onetom
17-Apr-2011
[9625x4]
aha... so i need /view. it would be great to insert this line on 
the download page.
or into the source code at least
but isn't it required only if i use the mod-userdir?
(which i would like to see an example about too. any urls about it?)
Dockimbel
17-Apr-2011
[9629x2]
Carl has introduced 'access-os native in 2.7.8 to map internally 
all those external dependencies, I haven't tested if it was available 
on OS X too, doing it now...
kill( ) and get-pid( ) are needed in all cases
onetom
17-Apr-2011
[9631x3]
(running rebview -qws cheyenne.r even with -w 0 is really ugly under 
osx, because of the 2 black app icons which doesn't even have a window 
associated.... :/)
but it works with rebview. would be nice to still have a /core only 
version
there was no need for changing the %libc.dylib
Kaj
17-Apr-2011
[9634]
The OS most probably uses its search paths to find it
Dockimbel
17-Apr-2011
[9635x2]
Right, library loading works OK with rebpro too without any change.
It seems that 'access-os is active under OS X too. I'm adding the 
support for it right now, so that Cheyenne can run on /Core too.
onetom
17-Apr-2011
[9637x4]
so, i can't run it from source on a headless linux server, right?
that would be awesome
i will test it immediately
Dockimbel: did u get my email too?
Dockimbel
17-Apr-2011
[9641x2]
Yes, it can since 0.9.20, thanks to 'access-os native, and it will 
in a few minutes on OS X too (requires /Core 2.7.8)
onetom: yes, I will look into it right after fixing this issue.
Maxim
17-Apr-2011
[9643x2]
doc, having issues with a handler I am building.  


my mod is using send-msg (taken from the RSP mod) in the make-response().


the handler actually pops-up and it runs the proper code, I can see 
the printing in the console.

when my god gets its task-done called, it has the proper code in 
the result....
 all seems good..   :-)

except:

   the browser doesn't get the response and it hangs (telling me that 
   its waiting for the server).

any clues?
god = mod   hehehe
onetom
17-Apr-2011
[9645]
Maxim: r u returning true at the end of make-response?