* adding 'sessions.sql'. work in progress
This commit is contained in:
parent
20be54bc67
commit
30880e33ce
|
|
@ -0,0 +1,2 @@
|
|||
build.connopts=dbname:jam_db_build
|
||||
build.oob_connopts=dbname:postgres
|
||||
2
Gemfile
2
Gemfile
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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
3
README
|
|
@ -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
2
build
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue