The devleopment environment for this app is a Mac running ruby 2.0 and rails 4, Postgres 9.3.
$ uname -a Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64 $ ruby --version ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin11] $ rails --version Rails 4.0.0 $ postgres --version postgres (PostgreSQL) 9.3.1
We are not using rails migrate, because the point of this system is that the underlying operations are independent of ruby. We have postgres sql queries and stored procedures.
Requirements:
-
postgres running on localhost, port 5432
-
a user role named ‘tree-admin’, no password
-
a user role named ‘tree-appuser’, no passwored
-
a database named ‘tree’, owned by ‘tree-admin’
Artifacts are put in the ‘public’ schema of database ‘tree’
run db/init - it’s a bash script. All it does is run db/*.sql against postgres on localhost to set up the database.
After that, just rails s