Permalink
Browse files

Updates for rearview-1.0.0.rc3

- remove rvmrc files and replace with standardized ruby manager ones
- setup script
- foreman for easier startup
- added comments to configuration file
  • Loading branch information...
talbright committed Dec 22, 2013
1 parent f59043b commit 579963b957bc713479bcb94108afb69f3fe19e03
Showing with 67 additions and 68 deletions.
  1. +2 −0 .env
  2. +1 −1 .ruby-gemset
  3. +2 −1 Gemfile
  4. +7 −2 Gemfile.lock
  5. +1 −0 Procfile
  6. +34 −0 bin/setup
  7. +18 −4 config/initializers/rearview.rb
  8. 0 sandbox/.gitkeep
  9. +1 −0 sandbox/.ruby-gemset
  10. +1 −0 sandbox/.ruby-version
  11. +0 −60 sandbox/.rvmrc
View
2 .env
@@ -0,0 +1,2 @@
PORT=3000
RAILS_ENV=development
View
@@ -1 +1 @@
rearview-web
rearview
View
@@ -27,10 +27,11 @@ gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'
gem 'rearview', '~> 1.0.0.rc2'
gem 'rearview', '~> 1.0.0.rc3'
gem 'omniauth'
gem 'omniauth-google-oauth2'
gem 'rspec-rails'
gem 'foreman'
platforms :jruby do
gem 'activerecord-jdbcmysql-adapter'
View
@@ -59,10 +59,14 @@ GEM
thread_safe (~> 0.1)
warden (~> 1.2.3)
diff-lcs (1.2.5)
dotenv (0.9.0)
erubis (2.7.0)
execjs (2.0.2)
faraday (0.8.8)
multipart-post (~> 1.2.0)
foreman (0.63.0-java)
dotenv (>= 0.7)
thor (>= 0.13.6)
hashie (2.0.5)
hike (1.2.3)
httparty (0.12.0)
@@ -130,7 +134,7 @@ GEM
rake (10.1.1)
rdoc (3.12.2)
json (~> 1.4)
rearview (1.0.0.rc2-java)
rearview (1.0.0.rc3-java)
ancestry (~> 2.0.0)
broach (~> 0.3.0)
celluloid (~> 0.14.1)
@@ -196,13 +200,14 @@ DEPENDENCIES
activerecord-jdbcmysql-adapter
activerecord-jdbcsqlite3-adapter
coffee-rails (~> 4.0.0)
foreman
jbuilder (~> 1.2)
jquery-rails
jruby-openssl
omniauth
omniauth-google-oauth2
rails (= 4.0.2)
rearview (~> 1.0.0.rc2)
rearview (~> 1.0.0.rc3)
rspec-rails
sass-rails (~> 4.0.0)
sdoc
View
@@ -0,0 +1 @@
web: bin/rails server -p $PORT
View
@@ -0,0 +1,34 @@
#!/usr/bin/env bash
setup_main_bundle() {
echo "Installing bundler..."
gem install bundler --no-rdoc --no-ri
echo "Running 'bundle install'..."
bundle install
}
setup_sandbox_bundle() {
echo "Setting up sandbox..."
(
cd sandbox
gem install bundler --no-rdoc --no-ri
bundle install
)
}
setup_rails() {
echo "Setting up databases..."
rake db:setup db:seed
}
sayonara() {
echo <<EOF
Setup complete.
EOF
}
setup_main_bundle
setup_sandbox_bundle
setup_rails
sayonara
@@ -4,18 +4,32 @@
config.logger = Rails.logger
config.sandbox_dir = Rails.root + "sandbox"
config.sandbox_exec = ["rvm-exec","ruby-1.9.3-p448@rearview-sandbox","ruby"]
# Configure the path to a ruby 1.9.3 binary that will be used to excute your
# monitor script in the sandbox.
# ex:
# config.sandbox_exec=["/opt/ruby-1.9.3/bin/ruby"]
config.sandbox_exec = ["rvm-exec","ruby-1.9.3@rearview-sandbox","ruby"]
# How long to wait for a monitor script to run in seconds. After this time
# period the monitor script will be terminated.
config.sandbox_timeout = 10
# This must poing to the graphite web server
# ex:
# config.graphite_url="http://graphite.mycompany.com"
config.graphite_url = nil
# This is the email from: address used when sending alerts
config.default_from = "rearview@localhost"
case Rails.env
when "test"
config.preload_jobs = false
when "production"
# Monitor script excutable will likely be different in production.
config.sandbox_exec = ["/bin/env","-i","PATH=/opt/ruby-1.9.3/bin", "bundle", "exec", "ruby"]
config.verify = true
when "development"
config.enable_alerts = false
else
end
if File.basename($0) == "rake"
View
No changes.
View
@@ -0,0 +1 @@
rearview-sandbox
View
@@ -0,0 +1 @@
ruby-1.9.3
View

This file was deleted.

Oops, something went wrong.

0 comments on commit 579963b

Please sign in to comment.