Database support on Cloud 9

mithun_daa picture mithun_daa · Nov 16, 2011 · Viewed 10.6k times · Source

Does Cloud 9 support any databases? Can my app talk to a database? MongoDB, Sqlite... anything? If so, how do i set it up? I am willing to work with any database. I just want to persist some of my info into a database.

Answer

Jan Jongboom picture Jan Jongboom · Nov 30, 2011

These days the workspaces are just Ubuntu VMs, so just follow the instructions on installing your favourite database on Ubuntu.

E.g.

  • Postgres: sudo apt-get install postgresql postgresql-contrib
  • MongoDB:

    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list sudo apt-get update sudo apt-get install mongodb-org

  • Sqlite: sudo apt-get install sqlite3 libsqlite3-dev