Permalink
Browse files

Changed web file to generate dna sequences

  • Loading branch information...
1 parent 4565226 commit 1dfe15460ab439ec4242f356487241317f2127fc @jayunit100 committed Aug 15, 2011
Showing with 11 additions and 3 deletions.
  1. +7 −0 README_HEROKU
  2. +4 −3 src/demo/web.clj
View
@@ -12,3 +12,10 @@ To deploy :
5) Finally, when you run the command to "push" to the heroku repository,
sudo git push heroku master
heroku ps:scale web=1
+6) If you cant push to the heroku master, try to run heroku keys:add ~/.ssh/id_rsa.pub (this adds an ssh key to heroku servers, i believe, so that
+the recognize you) //
+
+
+-- You can change the code locally, and run it on port 5000 by typing >foreman start, and navigating to port 5000
+-- Then, you can push your changes by commiting them to git, and pushing to the heroku master.
+
View
@@ -1,10 +1,11 @@
-(ns demo.web
- (:use ring.adapter.jetty))
+(ns demo.web (:use [ring.adapter.jetty] [BioClojure.core] ))
(defn app [req]
{:status 200
:headers {"Content-Type" "text/plain"}
- :body "Welcome Mini-ClotifMiner : The Flagship App of the BioClojure Framework "})
+ :body (str ["Welcome Mini-ClotifMiner : The Flagship App of the BioClojure Framework " (rand-motif-str (rand-int 15)) ] )
+ }
+)
(defn -main []
(let [port (Integer/parseInt (System/getenv "PORT"))]

0 comments on commit 1dfe154

Please sign in to comment.