Gunwiki caliber conversion app

Setting up the app

  • 'rails --database=postgresql conversion'
  • cd conversion
  • script/server -p 8080 # This forces it to start on 8080, not the default of 3000
  • Had to grant 'createdb' privilege in Postgres, via 'alter user gunwiki grant createdb', so that the user was capable of creating databases. Rake defaults to connecting as the user you happen to be.
  • Ran 'rake db:create', and it created the _test, _production, and _development databases.
  • Ran "pg_dump gunwiki | psql conversion_development", which took the schema I'd developed over in the gunwiki database and imported it into the conversion_development database.
  • Hereafter, running 'rake' on its own will apparently re-create the development database or something.
  • Running "tail -f log/development.log" is essential. You can see failed SQL queries, among other things, here.


  • Caliber:
  • Conversion:
  • ConvPartType:
  • Machine:
  • Manufacturer:

-- SeanNewton - 13 Jun 2008

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2008-06-15 - SeanNewton
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback