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 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
@@ -10,7 +10,7 @@ module ORS::Commands
10
10
 
11
11
  execute_command migration_server, %(source ~/.rvm/scripts/rvm),
12
12
  %(cd #{deploy_directory}),
13
- %(RAILS_ENV=#{environment} rake db:create)
13
+ %(RAILS_ENV=#{environment} bundle exec rake db:create)
14
14
  end
15
15
 
16
16
  end
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
@@ -1,3 +1,3 @@
1
1
  module ORS
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jason Dew and John Long