-
Notifications
You must be signed in to change notification settings - Fork 14
Tutorial Testing The Server
macourtney edited this page Sep 14, 2010
·
8 revisions
The first thing we’ll do is make sure the conjure server is working. In a terminal, do the following:
- Change directory to your hello_world project directory.
- type “lein conjure server”
You should see something like:
DEBUG [conjure.core.db.flavors.h2]: Executing query: ["SELECT * FROM sessions LI
MIT 1"]
DEBUG [conjure.core.db.flavors.h2]: Create table: :sessions with specs: (("id" "
INT" "NOT NULL" "AUTO_INCREMENT" "PRIMARY KEY") ["created_at" "TIMESTAMP"] ("ses
sion_id" "VARCHAR(255)") ["data" "TEXT"])
INFO [conjure.core.server.server]: Server Initialized.
INFO [conjure.core.server.server]: Initializing plugins...
INFO [conjure.core.server.server]: Plugins initialized.
INFO [conjure.core.server.server]: Initializing app controller...
INFO [conjure.core.server.server]: App controller initialized.
2010-06-30 09:59:26.854::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
2010-06-30 09:59:26.856::INFO: jetty-6.1.14
2010-06-30 09:59:26.940::INFO: Started SocketConnector@0.0.0.0: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.