Skip to content

Instantly share code, notes, and snippets.

@heardk
Forked from mikeumus/posgres-in-c9.md
Created December 18, 2016 15:55
Show Gist options
  • Save heardk/30d1a2f421754f9fd2fd034f51303530 to your computer and use it in GitHub Desktop.
Save heardk/30d1a2f421754f9fd2fd034f51303530 to your computer and use it in GitHub Desktop.
PostgreSQL in Cloud9 IDE
Gist shortlink: https://git.io/vV0xB

Official Living Doc for Postgres in C9: https://community.c9.io/t/setting-up-postgresql/1573

@mikeumus' Postgres in Cloud9 Notes:
@mashcode's Cloud 9 recipe:
  • In the c9 Project screen select Django template
  • Clone from Git copy/paste https://github.com/NewSpaceNYC/starseed.git
  • Create workspace
  • In the workspace click Open to launch the project into a new window
  • sudo pip install -r requirements.txt
  • $ sudo -s then sudo -u postgres psql or sudo su - postgres
  • $ createuser -d -P -s starseed
  • Enter password
  • $ createdb -O starseed starseeddb
  • \q
  • Run Postgres Server (see above)

Install psycopg2 for postgres

PSQL Commands

Notes for running Posgres in C9 from the open-source Starseed project:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment