SlideShare a Scribd company logo
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
user=> (use 'hiccup.core)
nil
user=> (html [:span {:class "foo"} "bar"])
"<span class="foo">bar</span>"
user=>
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
$ sudo gem install heroku

$ gem list heroku

*** LOCAL GEMS ***

heroku (2.4.0)




$ sudo port install git-core

$ port installed git-core
The following ports are currently installed:
 git-core @1.7.0_0+doc+gitweb+svn (active)
$ sudo port install mongodb

$ mkdir -p ~/local/var/db/mongodb_data

$ mkdir -p ~/local/var/log/mongodb




dbpath = /Users/kaku/local/var/db/mongodb_data
fork = true
logpath = /Users/kaku/local/var/log/mongodb/mongodb.log
logappend = true

$ mongod -f mongod.conf
$ lein new mogomogo

$ cd mogomogo



web: lein run -m mogomogo.core


$ git init

$ git add .

$ git commit -m "Initial commit"

$ heroku create --stack cedar

$ git push heroku master
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
$ heroku addons:add mongohq:free




$ git commit -a -m "Updates"

$ git push heroku master
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku

More Related Content

PDF
Gitosis on Mac OS X Server
PDF
PuppetCamp SEA 1 - Version Control with Puppet
PPTX
Comets notes
PDF
Git installation
PDF
Mac OS X Lion で作る WordPress local 環境
PDF
Laporan setting dns
PDF
Plone Conference 2008 Lightning Talk Static Zope Rpx
PDF
Gitosis on Mac OS X Server
PuppetCamp SEA 1 - Version Control with Puppet
Comets notes
Git installation
Mac OS X Lion で作る WordPress local 環境
Laporan setting dns
Plone Conference 2008 Lightning Talk Static Zope Rpx

What's hot (19)

PDF
Bash Scripting Workshop
ODT
Spatial script for MongoBoulder
KEY
gunicorn introduction
PDF
Capistrano Rails
PPTX
Linux basic3
PDF
Spatial script for my JS.Everywhere 2012
PPTX
WorkFlow: An Inquiry Into Productivity by Timothy Bolton
PDF
Docker tips & tricks
PDF
GoLang & GoatCore
PDF
Gogo shell
DOC
How to send files to remote server via ssh in php
PDF
Puppet Camp 2012
PPTX
Naughty And Nice Bash Features
PDF
PDF
Haskell Packageのdeb化
PDF
Heroku Tips and Hacks
PDF
The Art of Command Line (2021)
PPTX
agri inventory - nouka data collector / yaoya data convertor
PDF
第4回 g* ワークショップ はじめてみよう! Grailsプラグイン
Bash Scripting Workshop
Spatial script for MongoBoulder
gunicorn introduction
Capistrano Rails
Linux basic3
Spatial script for my JS.Everywhere 2012
WorkFlow: An Inquiry Into Productivity by Timothy Bolton
Docker tips & tricks
GoLang & GoatCore
Gogo shell
How to send files to remote server via ssh in php
Puppet Camp 2012
Naughty And Nice Bash Features
Haskell Packageのdeb化
Heroku Tips and Hacks
The Art of Command Line (2021)
agri inventory - nouka data collector / yaoya data convertor
第4回 g* ワークショップ はじめてみよう! Grailsプラグイン
Ad

Viewers also liked (11)

PDF
『はじめてのClojure』勉強会#3 第7章:テスト、テスト、テスト
KEY
Clojure入門
PDF
ClojureでElectronアプリを作ろう
PDF
Clojure Language Update (2015)
PDF
渋谷JVM#1 Immutable時代のプログラミング言語 Clojure
PDF
プログラミング言語Clojureのニャンパスでの活用事例
PDF
入門Transducers
PDF
From Java To Clojure
PDF
キメるClojure
PDF
会社でClojure使ってみて分かったこと
PDF
高速!Clojure Web 開発入門
『はじめてのClojure』勉強会#3 第7章:テスト、テスト、テスト
Clojure入門
ClojureでElectronアプリを作ろう
Clojure Language Update (2015)
渋谷JVM#1 Immutable時代のプログラミング言語 Clojure
プログラミング言語Clojureのニャンパスでの活用事例
入門Transducers
From Java To Clojure
キメるClojure
会社でClojure使ってみて分かったこと
高速!Clojure Web 開発入門
Ad

Similar to Clojure + MongoDB on Heroku (6)

PDF
From Zero to Mongo, Art.sy Experience w/ MongoDB
PPTX
2012 coscup - Build your PHP application on Heroku
PDF
Mongodb
PPTX
GIT, RVM, FIRST HEROKU APP
PDF
Heroku
PDF
Start developing Facebook apps in 13 steps
From Zero to Mongo, Art.sy Experience w/ MongoDB
2012 coscup - Build your PHP application on Heroku
Mongodb
GIT, RVM, FIRST HEROKU APP
Heroku
Start developing Facebook apps in 13 steps

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPT
Teaching material agriculture food technology
PPTX
Spectroscopy.pptx food analysis technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Approach and Philosophy of On baking technology
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
KodekX | Application Modernization Development
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
Electronic commerce courselecture one. Pdf
20250228 LYD VKU AI Blended-Learning.pptx
Teaching material agriculture food technology
Spectroscopy.pptx food analysis technology
Per capita expenditure prediction using model stacking based on satellite ima...
Approach and Philosophy of On baking technology
Programs and apps: productivity, graphics, security and other tools
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
KodekX | Application Modernization Development
Reach Out and Touch Someone: Haptics and Empathic Computing
MYSQL Presentation for SQL database connectivity
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Encapsulation_ Review paper, used for researhc scholars
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Chapter 3 Spatial Domain Image Processing.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Building Integrated photovoltaic BIPV_UPV.pdf

Clojure + MongoDB on Heroku

  • 18. user=> (use 'hiccup.core) nil user=> (html [:span {:class "foo"} "bar"]) "<span class="foo">bar</span>" user=>
  • 26. $ sudo gem install heroku $ gem list heroku *** LOCAL GEMS *** heroku (2.4.0) $ sudo port install git-core $ port installed git-core The following ports are currently installed: git-core @1.7.0_0+doc+gitweb+svn (active)
  • 27. $ sudo port install mongodb $ mkdir -p ~/local/var/db/mongodb_data $ mkdir -p ~/local/var/log/mongodb dbpath = /Users/kaku/local/var/db/mongodb_data fork = true logpath = /Users/kaku/local/var/log/mongodb/mongodb.log logappend = true $ mongod -f mongod.conf
  • 28. $ lein new mogomogo $ cd mogomogo web: lein run -m mogomogo.core $ git init $ git add . $ git commit -m "Initial commit" $ heroku create --stack cedar $ git push heroku master
  • 35. $ heroku addons:add mongohq:free $ git commit -a -m "Updates" $ git push heroku master

Editor's Notes