Skip to content

Instantly share code, notes, and snippets.

@mikeumus
Last active January 9, 2023 18:39
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mikeumus/03626d5cd3e1aa42918f to your computer and use it in GitHub Desktop.
Save mikeumus/03626d5cd3e1aa42918f 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:

@augustinnsengiyumva
Copy link

thanks

@augustinnsengiyumva
Copy link

you more helped me

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