Clojure lab

Clojure web development for beginners. Contacts clojure.lab@gmail.com
Clojure web development for beginners. Contacts clojure.lab@gmail.com
  • rss
  • archive
  • Using heroku for hosting

    So we have made Bookshelf app and need to show it to our friends how to do this ? You need just 2 simple steps.

    Add this to your project.clj file:

    Heroku will use your production database, so it will run something like lein run.

    Ok then

    heroku create

    git push heroku master

    And our app is there.

    Couple of important notes.

    1. Heroku doesn’t host static files ! You need host them on other server ( S3 for example)
    2. Heroku provides for free only postgre database in other cases ( like ours) use remote DB like Mongohq.com.
    • November 7, 2012 (6:27 am)
© 2012–2013 Clojure lab