Create the mongod.conf
and insert the config content.
sudo vim /usr/local/var/mongodb/mongod.conf
Grab the path to mongod. which mongod
Create the org.mongo.mongod.plist
file and insert the plist content and update the path to mongod.
$install_script = <<SCRIPT | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 | |
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/10gen.list | |
sudo apt-get install -y mongodb-10gen | |
curl -L https://get.rvm.io | bash -s stable --ruby=2.1.1 | |
source /home/vagrant/.rvm/scripts/rvm | |
gem install bundler | |
cd /sage && bundle install && npm install -g bower grunt-cli | |
SCRIPT |
code { | |
font-family:'Bitstream Vera Sans Mono','Courier', monospace; | |
} | |
.highlight .c { color: #586E75 } /* Comment */ | |
.highlight .err { color: #93A1A1 } /* Error */ | |
.highlight .g { color: #93A1A1 } /* Generic */ | |
.highlight .k { color: #859900 } /* Keyword */ | |
.highlight .l { color: #93A1A1 } /* Literal */ | |
.highlight .n { color: #93A1A1 } /* Name */ |
Create the mongod.conf
and insert the config content.
sudo vim /usr/local/var/mongodb/mongod.conf
Grab the path to mongod. which mongod
Create the org.mongo.mongod.plist
file and insert the plist content and update the path to mongod.
if
if tweets.empty?
puts "no tweets found - better follow some ppl!"
end
# inline
puts "no tweets found - better follow some ppl!" if tweets.empty?