Skip to content

Instantly share code, notes, and snippets.

@ithayer
Created July 4, 2011 19:20
Show Gist options
  • Save ithayer/1063814 to your computer and use it in GitHub Desktop.
Save ithayer/1063814 to your computer and use it in GitHub Desktop.
Clojure on Heroku with Noir and Mongo Demo
# Install latest version of noir.
lein install noir "1.1.0-SNAPSHOT"
# Create new noir project.
lein noir new noir-mongo-heroku
cd noir-mongo-heroku
# Create instructions for heroku.
echo 'web: lein run' > Procfile
# Create git repository.
git init
git add .
git commit -m "Initial commit"
# Initialize heroku app.
heroku create --stack cedar
# Push to heroku.
git push heroku master
# 1. Install lein
wget https://raw.github.com/technomancy/leiningen/stable/bin/lein
sh lein
# 2. Install heroku gem
gem install heroku
heroku addons:add mongohq:free
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment