-
Notifications
You must be signed in to change notification settings - Fork 14
Tutorial 0.6 Testing The Server
macourtney edited this page Sep 13, 2010
·
1 revision
The first thing we’ll do is make sure the conjure server is working. In a terminal, do the following:
- Change directories into your hello_world project directory.
- type “./run.sh script/server.clj” (if you’re using Windows, you can use run.bat)
You should see something like:
.\lib\*;.\vendor;.\app;.\config;.\script;.\db;.\test Feb 1, 2010 10:28:34 AM clojure.contrib.logging$eval__631$impl_write_BANG___639 invoke INFO: Initializing server... Feb 1, 2010 10:28:34 AM clojure.contrib.logging$eval__631$impl_write_BANG___639 invoke FINE: Executing query: ["SELECT * FROM sessions LIMIT 1"] Feb 1, 2010 10:28:35 AM clojure.contrib.logging$eval__631$impl_write_BANG___639 invoke INFO: Server Initialized. 2010-02-01 10:28:35.532::INFO: Logging to STDERR via org.mortbay.log.StdErrLog 2010-02-01 10:28:35.532::INFO: jetty-6.1.18 2010-02-01 10:28:35.564::INFO: Started [email protected]:8080
This means, the server script has started a new jetty webserver on port 8080. Point your browser at “http://localhost:8080/” to see a welcome message. If you don’t see a welcome message, something was not installed correctly. Review the “Creating a new Project” section of Getting Started.