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

Maarten
21-Jul-2009
[5217x2]
Doc, RSP by itself.. I use a version which does set word capturing 
(do you do that?) and allows page inclusion and context injection 
with "captured" words on the subpage. Do you do that?


Otherwise, a lot of Qtask "the application"  is Javascript on the 
UI calling API services - RSP is of little use there. The main web 
site... I would actually oppose REBOL. Why spend time there on e.g. 
a shopping cart when you can take one of the shelf and spend that 
time improving the real product (the service/application)?
Back to RSP, if you allow nested RSP and do word capturing BUT passing 
words between parten/child pages, I''d say, yes, Cheyenne's RSP is 
very good.
Dockimbel
21-Jul-2009
[5219x2]
Word capturing => yes, all RSP running inside a webapp are captured 
in the webapp execution context, to avoid global context pollution. 
This doesn't apply to standalone RSP scripts (outside a webapp), 
but that feature could be easily added.


Page inclusion => yes, you can include RSP scripts in RSP. See http://cheyenne-server.org/docs/rsp-api.html#def-21

context injection with 

captured" words on the subpage" => I don't understand precisely what 
you describe here. In Cheyenne/RSP, subpages are captured in the 
webapp unique context, like parent pages, so there's no special treatment 
for subpages. Do you imply exporting just a selected list of words 
from the subpage script to the parent context?
Graham: no, not yet. If you have an urgent need for the new version, 
I can make a snapshot of my development version.
Janko
21-Jul-2009
[5221x3]
is rename somehow changed in cheyenne compared to regular rebol?
I can't seem to make it work normally
I can only rename in current directory .. also doesn't seem to work 
in a subdirectory of current dir
Dockimbel
21-Jul-2009
[5224]
I'm not aware of any impact on RENAME in RSP scripts. Does your code 
work in console?
Janko
21-Jul-2009
[5225]
I thin I can .. I will test it more serriously and report you if 
there will be any issue
Dockimbel
21-Jul-2009
[5226x2]
I've set up a public SVN repository for the development version of 
Cheyenne, so if anyone needs the latest patches or improvements, 
it doesn't have to wait for the next release. Access info at : http://code.google.com/p/cheyenne-server/source/checkout
Direct SVN checkout : 


svn checkout http://cheyenne-server.googlecode.com/svn/trunk/cheyenne-server-read-only
Janko
21-Jul-2009
[5228x2]
wow, cool
now that I know for dtach I can run cheyenne from source too
Dockimbel
21-Jul-2009
[5230]
Did you tried the following way?

> rebol -qws cheyenne.r &
Janko
21-Jul-2009
[5231]
I didn't try to run cheyenne this way yet.. I needed to explore these 
options .. also the & for some mine server that was running actor 
net. I am using dtach for that and I also have one running console 
for cheyenne now
Graham
21-Jul-2009
[5232]
Good news about the svn
Maarten
21-Jul-2009
[5233x2]
Doc, correct, but your approach works just as well for me. I explicitly 
force word passing because the web context is created in the RSP 
engine for the parent page.
So, RSP is good enough, except we are more API oriented with a Javascript 
front end :-)
Dockimbel
21-Jul-2009
[5235]
Well, I've found RSP script pretty handy for web services too, generating 
dynamically javascript code or XML for AJAX requests.
Maarten
21-Jul-2009
[5236]
XML I can see, but JSON is so close to REBOL.
Dockimbel
21-Jul-2009
[5237]
I don't use much JSON, I generate the JS code directly server-side 
(using RSP) and just Eval( ) on client side.
Janko
21-Jul-2009
[5238]
I use cheyenne which generates mostly JSON for one project, haven't 
seen any problems
Graham
22-Jul-2009
[5239]
Does the trunk have the version that allows different webapps to 
access the same DB virtual name but different connections?
Dockimbel
22-Jul-2009
[5240]
Yes it has, just look in the changelog file : http://cheyenne-server.googlecode.com/svn/trunk/Cheyenne/changelog.txt
Graham
22-Jul-2009
[5241]
thanks
Will
23-Jul-2009
[5242]
Thanks Dock, much appreciated 8)
Will
26-Jul-2009
[5243]
side note: if you have:
persist [sessions]

in your httpd.cfg file, stop the server and delete the %.rsp-sessions 
file before upgrading to the latest svn version
Graham
30-Jul-2009
[5244x2]
What's the relationship between vhosts and webapps?
ie. can I have webapps inside a vhost?
Dockimbel
30-Jul-2009
[5246]
vhosts are just containers, so you can have one or more webapps in 
a vhost.
Graham
30-Jul-2009
[5247]
Thanks.
Graham
31-Jul-2009
[5248]
Do vhosts work with stunnel ?  ie. I can redirect incomming https 
to different vhosts?
Graham
1-Aug-2009
[5249x4]
I've just started testing the latest cheyenne out of SVN.   No matter 
what port I run it on, it always says it is runing on port 80 when 
you hover over the system tray.
I encapped cheyenne.r and now my cheyenne server just terminates 
without any entries in the crash log :(
doesn't look like you can get a verbose trace by default with the 
encapped version
http://pwp.s3.amazonaws.com/checmd090801.exe

is the encapped binary of cheyenne using rebviewcmd encap
Dockimbel
1-Aug-2009
[5253]
Try running the encapped version with -vvv as command line argument.
Graham
1-Aug-2009
[5254x5]
it just shuts down with no explanation.
1/8-10:32:43.093-[boot] Cmdline args : -vv
1/8-10:32:43.093-[boot] Processed    : [verbosity 2]

1/8-10:32:43.093-[boot] Boot flags   : [no-screen verbose tray-only]
1/8-10:32:43.093-[boot] Data folder  : %./
oops .. another v
now got a crash log
1-Aug-2009/10:34:38-7:00 : make object! [
    code: 303
    type: 'script
    id: 'expect-arg
    arg1: 'set-modes
    arg2: 'target
    arg3: [file! url! block! port!]
    near: [set-modes sys remote-mode]
    where: 'set-tray-remote-events
]
Dockimbel
1-Aug-2009
[5259]
Same here, but runs ok if I encap from my personal repository, so 
it's maybe caused by an out-of-sync file in the svn repository.
Graham
1-Aug-2009
[5260x3]
oh ....
would you do a cmd encap?
or checkout from the repository and try encapping again from new 
checkout?
Dockimbel
1-Aug-2009
[5263]
It's ok with enface, but fails as yours with encmdview.
Graham
1-Aug-2009
[5264]
older cheyenne is okay with encmdview
Dockimbel
1-Aug-2009
[5265x2]
Crash located in %uni-engine.r at this line :
get in new 'on-received