ors 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README +48 -0
- data/lib/ors/commands/setup.rb +1 -1
- data/lib/ors/helpers.rb +1 -1
- data/lib/ors/version.rb +1 -1
- metadata +3 -3
data/README
CHANGED
@@ -1,3 +1,51 @@
|
|
1
|
+
== Set Up
|
2
|
+
|
3
|
+
Required Files:
|
4
|
+
* .rvmrc
|
5
|
+
* Gemfile
|
6
|
+
* Gemfile.lock
|
7
|
+
* config/database.yml
|
8
|
+
* .git/config
|
9
|
+
* config/unicorn.rb
|
10
|
+
|
11
|
+
|
12
|
+
=== Setting Up GitConfig
|
13
|
+
|
14
|
+
[remote "production"]
|
15
|
+
url = git@eden:ors/deployment.git
|
16
|
+
push = refs/heads/master:refs/heads/production
|
17
|
+
|
18
|
+
>> git push production # updates remote production branch without local branch
|
19
|
+
|
20
|
+
|
21
|
+
=== Setting up RVM
|
22
|
+
|
23
|
+
On your ruby servers you should create a .rvmrc in the home directory of the user running unicorn.
|
24
|
+
|
25
|
+
rvm_install_on_use_flag=1
|
26
|
+
rvm_gemset_create_on_use_flag=1
|
27
|
+
rvm_trust_rvmrcs_flag=1
|
28
|
+
|
29
|
+
|
30
|
+
=== Required gems
|
31
|
+
|
32
|
+
* rake
|
33
|
+
* bundler
|
34
|
+
|
35
|
+
==== Gemfile
|
36
|
+
|
37
|
+
group :production, :demo do
|
38
|
+
gem 'unicorn'
|
39
|
+
gem 'mysql2'
|
40
|
+
gem 'dalli'
|
41
|
+
gem 'exception_notification', :git => "git://github.com/rails/exception_notification", :branch => "master", :require => "exception_notifier"
|
42
|
+
end
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
=== Usage
|
47
|
+
|
48
|
+
|
1
49
|
Usage: ./ors <action> [environment=production] [options]
|
2
50
|
|
3
51
|
=== Actions
|
data/lib/ors/commands/setup.rb
CHANGED
data/lib/ors/helpers.rb
CHANGED
@@ -67,7 +67,7 @@ module ORS
|
|
67
67
|
info "[#{server}] running migrations..."
|
68
68
|
|
69
69
|
execute_command server, %(cd #{deploy_directory}),
|
70
|
-
%(RAILS_ENV=#{environment} rake db:migrate db:seed)
|
70
|
+
%(RAILS_ENV=#{environment} bundle exec rake db:migrate db:seed)
|
71
71
|
end
|
72
72
|
|
73
73
|
def execute_in_parallel servers
|
data/lib/ors/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jason Dew and John Long
|