Prerequisites: You need a JDK and Ant installed on your computer and added to the path. Also you might need to add JAVA_HOME and ANT_HOME environment variables.
Download the page application, together with the latest rupy and extract them to the same folder. Go to the http/ folder first and start rupy with either the run.bat or run.sh script depending on your OS. Then go to the page/ folder and run the ant local task, this should build and deploy the test application to your rupy server. Now try browsing to http://localhost:8000.
If you wan't to deploy to host.rupy.se you can follow the local tutorial above with these changes:
We have started the development of sprout, a simple blogger; based on top of rupy and memory. If you want a real-world example of rupy in action try this out!
Let's create a rootservice (when you browse to "/") that returns 'hello'.
import se.rupy.http.*;
public Hello extends Service {
public String path() { return "/"; }
public void filter(Event event) throws Event, Exception {
event.output().print("hello");
}
}
Compile the Hello class above and put it in a jar file (hello.jar in the example below), then upload it to a running rupy server (run.bat or run.sh) in your ant script like this:
<target name="deploy">
<java fork="yes" classname="se.rupy.http.Deploy" classpath="http.jar">
<arg line="localhost:8000"/>
<arg line="hello.jar"/>
<arg line="secret"/><!-- see run.bat and run.sh -->
</java>
</target>
View and moderate all "wiki Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Wiki"
Originally posted by: pragmati... (code.google.com)@gmail.com
In order to run the chat (talk) sample on Ubuntu, I had to make the following changes:
1. Navigate to http folder, execute the command chmod +x run.sh
2. Modify run.sh to java -classpath .:bin/http.jar:../talk/lib/json.jar se.rupy.http.Daemon -verbose -pass secret