Clojure Web Service for CAWA
Clojure
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.openshift
diy
misc
resources/public/css
src/cwscawa
test/cwscawa
.gitignore
README
README.org
project.clj

README.org

testbed Clojure webservice app

written in noir, to be deployed on Openshift (Heroku ?)

curl -X PUT -d @/home/bernard/Code/repositories/cwscawa/test/cwscawa/new-workers.json --header "Content-Type: application/json"  http://localhost:8080/workers
curl http://localhost:8080/workers
curl -X POST -d "[\"j1\",\"j2\"]" --header "Content-Type: application/json"  http://localhost:8080/jobs
#curl -d @/home/bernard/Code/repositories/cwscawa/test/cwscawa/jobs.json --header "Content-Type: application/json"  http://localhost:8080/jobs/submit

curl http://localhost:8080/loads
curl -d "[\"id3\"]" --header "Content-Type: application/json"  http://localhost:8080/workers/ack
curl http://localhost:8080/loads

curl -X DELETE -d "[\"id3\"]" --header "ContentGET  http://localhost:8080/workers
curl http://localhost:8080/workers

Openshift

web console
https://openshift.redhat.com/app/console/applications/testbed
web app
http://testbed-firsttest.rhcloud.com/
git
ssh://afb53b65209940e6b3a0708c3e1e7bdd@testbed-firsttest.rhcloud.com/~/git/testbed.git/
wget https://raw.github.com/gist/2881373/8220c0d53ccfacd53967d1c0476afffd6c2e7619/start -O .openshift/action_hooks/start
wget https://raw.github.com/gist/2881373/8220c0d53ccfacd53967d1c0476afffd6c2e7619/stop -O .openshift/action_hooks/stop

mkdir bin
cd bin && wget https://raw.github.com/technomancy/leiningen/stable/bin/lein && chmod +x lein

rhc app cartridge start -a testbed -c postgresql-8.4 rhc app cartridge stop -a testbed -c postgresql-8.4 rhc app cartridge restart -a testbed -c postgresql-8.4 rhc app cartridge reload -a testbed -c postgresql-8.4 rhc app cartridge status -a testbed -c postgresql-8.4

postgresql credentials

—–BEGIN PGP MESSAGE—– Version: GnuPG v1.4.12 (GNU/Linux)

jA0EAwMCKO9A1uiOyJpgyY2JQ2a5r+TzMNOjz5Xhf61onlILNg1NdtaqVr0tFm8f +IQi368870rtamb+H68e92q13FE8pMQ4Myt4i7vlrdTF58PytsP3KCebck4INxr8 66YXpH3FPguUNle987NoJA7Pxe3tMj9H8lV7NTb6LwT0UjF8IX/pHKSy6d0GED+M s9yA3zHgsFsPqTUFz58= =KvgS —–END PGP MESSAGE—–