* adding 'sessions.sql'. work in progress

This commit is contained in:
Seth Call 2012-08-04 22:12:44 -05:00
parent 20be54bc67
commit 30880e33ce
6 changed files with 10 additions and 4 deletions

2
.pg_migrate Normal file
View File

@ -0,0 +1,2 @@
build.connopts=dbname:jam_db_build
build.oob_connopts=dbname:postgres

View File

@ -7,4 +7,4 @@ workspace = ENV["WORKSPACE"] || "workspace"
# $ cd [workspace]
# $ git clone https://github.com/sethcall/pg_migrate_ruby
gem 'pg_migrate', '0.1.0' #:path=> '~/' + workspace + '/pg_migrate_ruby'
gem 'pg_migrate', '0.1.3' # :path=> '~/' + workspace + '/pg_migrate_ruby'

View File

@ -5,7 +5,7 @@ GEM
logging (1.7.2)
little-plugger (>= 1.1.3)
pg (0.14.0)
pg_migrate (0.1.0)
pg_migrate (0.1.3)
logging (= 1.7.2)
pg (= 0.14.0)
thor (= 0.15.4)
@ -15,4 +15,4 @@ PLATFORMS
ruby
DEPENDENCIES
pg_migrate (= 0.1.0)
pg_migrate (= 0.1.3)

3
README
View File

@ -15,6 +15,9 @@ Environment
* bash . If on windows, use git bash or cygwin. Bash is used as the build script technology. (could change very easily)
* Definition of location for your developer workspace. Default is ~/workspace, but if you define an env variable, you can override.
* pg_migrate_ruby - $ cd [workspace] && git clone https://github.com/sethcall/pg_migrate_ruby
* you want it so the current user has access to the 'postgres' database and is a super user. In other words, you want to make sure your current logged in user can do the following at the command line: 'psql postgres'. If you can do that, you should be OK. There are two reasons this may not work for you.
# Your current user is not a superuser. If not, do `sudo su postgres -c "createuser YOURUSER"` and answer 'y' with the first question.
# If your user already is a superuser, then the postgres database may not exist yet. In that case, do `psql` then `create database postgres`
* NOT YET: $IVY defined as path to the [apache ivy jar](http://ant.apache.org/ivy/download.cgi). Download the latest ivy from here, extract somewhere, and create an IVY environment variable with a path to the ivy.jar. For example, in my bash.profile: `export IVY=/Users/seth/workspace/apache-ivy-2.3.0-rc1/ivy-2.3.0-rc1.jar`
Building

2
build
View File

@ -21,7 +21,7 @@ mkdir -p $PG_RUBY_PACKAGE_OUT
bundle update
echo "building migrations"
bundle exec pg_migrate build --source . --out $PG_BUILD_OUT
bundle exec pg_migrate build --source . --out $PG_BUILD_OUT --test
echo "packaging migrations for ruby"bundle exec pg_migrate package --source $PG_BUILD_OUT --out $PG_RUBY_PACKAGE_OUT --name jam-db --version "0.0.1"
bundle exec pg_migrate package --source $PG_BUILD_OUT --out $PG_RUBY_PACKAGE_OUT --name $PROJECT_NAME --version $BUILD_NUMBER

View File

@ -0,0 +1 @@
sessions.sql