Skip to content

Instantly share code, notes, and snippets.

@jayd3e
Created March 8, 2014 22:45
Show Gist options
  • Save jayd3e/9440155 to your computer and use it in GitHub Desktop.
Save jayd3e/9440155 to your computer and use it in GitHub Desktop.
# Go into /opt/webapp/clusterflunk/src
# and type heroku pg:psql
# You can add the courses/sections you need with the following two SQL commands
insert into courses(name, created, network_id, founder_id) values ('Course Name', now(), <network_id>, 59);
insert into sections(name, number, course_id) values ('Course Name', 'Course Number', <course_id);
# Then from the same directory, update the search index by calling fab update_search_index_courses:<network_id>,
# where <network_id> is replaced with the id of the network you're updating
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment