Created
May 28, 2012 22:12
-
-
Save jaikoo/2821431 to your computer and use it in GitHub Desktop.
Rails 3.2.3 with Postgresql DB pool using JNDI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
development: | |
adapter: jdbc | |
jndi: java:/comp/env/jdbc/mooalert | |
driver: org.postgresql.Driver | |
test: | |
adapter: jdbc | |
username: jaikoo | |
password: enteryourpassword | |
driver: org.postgresql.Driver | |
url: jdbc:postgresql://localhost:5432/mooalert_test | |
production: | |
adapter: jdbc | |
jndi: java:/comp/env/jdbc/mooalert_prod | |
driver: org.postgresql.Driver |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'rails', '3.2.3' | |
platforms :jruby do | |
gem 'trinidad' | |
gem 'trinidad_postgresql_dbpool_extension' | |
gem 'jruby-openssl' | |
gem 'activerecord-jdbcpostgresql-adapter' | |
end | |
# Gems used only for assets and not required | |
# in production environments by default. | |
group :assets do | |
gem 'sass-rails', '~> 3.2.3' | |
gem 'coffee-rails', '~> 3.2.1' | |
# See https://github.com/sstephenson/execjs#readme for more supported runtimes | |
gem 'therubyrhino' | |
gem 'uglifier', '>= 1.0.3' | |
end | |
gem "capybara", :group => [:development, :test] | |
gem "haml", ">= 3.0.0" | |
gem "haml-rails" | |
gem "jquery-rails" | |
gem "omniauth", "~> 0.2.0" | |
gem "rspec-rails", ">= 2.0.1", :group => [:development, :test] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web_apps: | |
default: | |
extensions: | |
postgresql_dbpool: # EXTENSION NAME AS KEY | |
jndi: 'jdbc/mooalert' # jndi name | |
username: 'jaikoo' # database username | |
password: 'enteryourpassword' # database password | |
url: 'jdbc:postgresql://localhost:5432/mooalert_dev' # database url | |
maxActive: 100 # max nodes actives | |
maxIdle: 30 # max nodes idles | |
maxWait: 10000 # max nodes waiting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment