Skip to content

Instantly share code, notes, and snippets.

@bmpvieira
Created August 9, 2014 13:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmpvieira/b43b29f12a129372bf33 to your computer and use it in GitHub Desktop.
Save bmpvieira/b43b29f12a129372bf33 to your computer and use it in GitHub Desktop.
Test Dat on Heroku
  • Go to https://github.com/bmpvieira/heroku-dat-template and click Deploy;
  • Choose a name (like test-dat);
  • Wait for deploy to finish and click "View it" (http://test-dat.herokuapp.com);
  • Click import -> paste JSON -> Copy/Paste example;
  • Do dat clone http://test-dat.herokuapp.com and cd into folder;
  • Do dat serve and go to localhost:6461;
  • PROBLEM 1: No data;
  • Kill, do echo '{"hello":"world"}'|dat import --json and serve again;
  • Now there's some data, kill and do dat push http://test-dat.herokuapp.com
  • PROBLEM 2: Nothing changed on Heroku
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment