rearview 1.0.0.rc2-jruby → 1.0.0.rc3-jruby
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -92
- data/lib/rearview/configuration.rb +2 -2
- data/lib/rearview/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e530e470a5153f55653514071ea0838173cdeb60
|
4
|
+
data.tar.gz: c6397d8ac55537383e2ed59d5a498929234cd681
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 699d9a4912a592b2df20835c8ab039fb596dbf061fa65406d894fd5a091902162ae0b0f6a2609f761fc26619a3cee2e59ddf0e1b7e36b96b113b536d1d50dccb
|
7
|
+
data.tar.gz: f333496d50c4445d6eac88dd0ccf84f6bae9b5b998902fe68f37a9b3af3e1aad2233ea175727c4a159546f4e6290a175776274db73f14825ba72b8bda9185b79
|
data/README.md
CHANGED
@@ -1,94 +1,5 @@
|
|
1
|
-
|
1
|
+
Rails engine for ![rearview](http://github.com/livingsocial/rearview). This project is for rearview developers only. For users please go to ![rearview](http://github.com/livingsocial/rearview) project for installation, configuration, and other details.
|
2
2
|
|
3
|
-
|
3
|
+
# Development
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
https://rearview.livingsocial.net
|
8
|
-
|
9
|
-
# Requirements
|
10
|
-
|
11
|
-
- latest rvm
|
12
|
-
- jvm 1.6
|
13
|
-
- jruby 1.7.5
|
14
|
-
|
15
|
-
# Installation
|
16
|
-
|
17
|
-
% ./script/bootstrap
|
18
|
-
|
19
|
-
# Running
|
20
|
-
|
21
|
-
% foreman start rearview_web
|
22
|
-
|
23
|
-
# Deployment
|
24
|
-
|
25
|
-
## first time deployment
|
26
|
-
|
27
|
-
If this is the first time you have deployed to production or myqa, run the following command. Note that
|
28
|
-
this only needs to be run ONCE:
|
29
|
-
|
30
|
-
% script/deploy --setup
|
31
|
-
|
32
|
-
This sets up a cap wrapper specific to rearview, which accepts the same parameters as cap normally would:
|
33
|
-
|
34
|
-
% rearview_cap -T
|
35
|
-
|
36
|
-
## deploy to production
|
37
|
-
|
38
|
-
% rearview_cap deploy
|
39
|
-
|
40
|
-
## deploy to myqa
|
41
|
-
|
42
|
-
% rearview_cap myqa deploy
|
43
|
-
|
44
|
-
# MYQA
|
45
|
-
|
46
|
-
## restarting application
|
47
|
-
|
48
|
-
% sudo /usr/local/bin/pumactl rearview-ruby cold-restart
|
49
|
-
|
50
|
-
## starting the rails console
|
51
|
-
|
52
|
-
$ PATH=/opt/jruby/bin:$PATH RAILS_ENV=production bundle exec rails console
|
53
|
-
|
54
|
-
## running rake tasks
|
55
|
-
|
56
|
-
$ PATH=/opt/jruby/bin:$PATH RAILS_ENV=production bundle exec rake db:migrate
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
===============================================================================
|
61
|
-
|
62
|
-
Some setup you must do manually if you haven't yet:
|
63
|
-
|
64
|
-
1. Ensure you have defined default url options in your environments files. Here
|
65
|
-
is an example of default_url_options appropriate for a development environment
|
66
|
-
in config/environments/development.rb:
|
67
|
-
|
68
|
-
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
|
69
|
-
|
70
|
-
In production, :host should be set to the actual host of your application.
|
71
|
-
|
72
|
-
2. Ensure you have defined root_url to *something* in your config/routes.rb.
|
73
|
-
For example:
|
74
|
-
|
75
|
-
root :to => "home#index"
|
76
|
-
|
77
|
-
3. Ensure you have flash messages in app/views/layouts/application.html.erb.
|
78
|
-
For example:
|
79
|
-
|
80
|
-
<p class="notice"><%= notice %></p>
|
81
|
-
<p class="alert"><%= alert %></p>
|
82
|
-
|
83
|
-
4. If you are deploying on Heroku with Rails 3.2 only, you may want to set:
|
84
|
-
|
85
|
-
config.assets.initialize_on_precompile = false
|
86
|
-
|
87
|
-
On config/application.rb forcing your application to not access the DB
|
88
|
-
or load models when precompiling your assets.
|
89
|
-
|
90
|
-
5. You can copy Devise views (for customization) to your app by running:
|
91
|
-
|
92
|
-
rails g devise:views
|
93
|
-
|
94
|
-
===============================================================================
|
5
|
+
TODO
|
@@ -5,8 +5,8 @@ module Rearview
|
|
5
5
|
:sandbox_timeout, :sandbox_dir, :enable_alerts, :preload_jobs, :logger, :enable_monitor, :verify)
|
6
6
|
|
7
7
|
DEFAULTS = {
|
8
|
-
default_from: "rearview@
|
9
|
-
graphite_url:
|
8
|
+
default_from: "rearview@localhost",
|
9
|
+
graphite_url: nil,
|
10
10
|
pagerduty_url: "https://events.pagerduty.com/generic/2010-04-15/create_event.json",
|
11
11
|
sandbox_timeout: 5,
|
12
12
|
enable_alerts: true,
|
data/lib/rearview/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rearview
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc3
|
5
5
|
platform: jruby
|
6
6
|
authors:
|
7
7
|
- Trent Albright
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|