magic_recipes 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/magic_recipes/assets.rb +4 -5
- data/lib/magic_recipes/db.rb +2 -4
- data/lib/magic_recipes/private_pub.rb +1 -2
- data/lib/magic_recipes/rvm.rb +3 -1
- data/lib/magic_recipes/thin.rb +1 -2
- metadata +2 -2
data/lib/magic_recipes/assets.rb
CHANGED
@@ -50,11 +50,10 @@ module MagicRecipes
|
|
50
50
|
end
|
51
51
|
if use_rvm
|
52
52
|
run <<-CMD
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
CMD
|
53
|
+
#{rvm_cmd} &&
|
54
|
+
cd #{latest_release} &&
|
55
|
+
#{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile
|
56
|
+
CMD
|
58
57
|
else
|
59
58
|
run "cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile"
|
60
59
|
end
|
data/lib/magic_recipes/db.rb
CHANGED
@@ -10,8 +10,7 @@ module MagicRecipes
|
|
10
10
|
task :seed do
|
11
11
|
if use_rvm
|
12
12
|
run <<-CMD
|
13
|
-
|
14
|
-
rvm use #{rvm_ruby}-#{rvm_patch}@#{rvm_gemset} &&
|
13
|
+
#{rvm_cmd} &&
|
15
14
|
cd #{latest_release} &&
|
16
15
|
#{rake} db:seed RAILS_ENV=#{rails_env}
|
17
16
|
CMD
|
@@ -24,8 +23,7 @@ module MagicRecipes
|
|
24
23
|
task :migrate do
|
25
24
|
if use_rvm
|
26
25
|
run <<-CMD
|
27
|
-
|
28
|
-
rvm use #{rvm_ruby}-#{rvm_patch}@#{rvm_gemset} &&
|
26
|
+
#{rvm_cmd} &&
|
29
27
|
cd #{latest_release} &&
|
30
28
|
#{rake} db:migrate RAILS_ENV=#{rails_env}
|
31
29
|
CMD
|
@@ -38,8 +38,7 @@ module MagicRecipes
|
|
38
38
|
task :start, roles: :app do
|
39
39
|
if use_rvm
|
40
40
|
run <<-CMD
|
41
|
-
|
42
|
-
rvm use #{rvm_ruby}-#{rvm_patch}@#{rvm_gemset} &&
|
41
|
+
#{rvm_cmd} &&
|
43
42
|
cd #{current_path} &&
|
44
43
|
RAILS_ENV=production bundle exec rackup private_pub.ru -s thin -E production -p #{private_pub_port} -o #{server_ip} -D
|
45
44
|
CMD
|
data/lib/magic_recipes/rvm.rb
CHANGED
@@ -20,7 +20,9 @@ module MagicRecipes
|
|
20
20
|
set :rvm_lib_path, "#{rvm_path}/lib"
|
21
21
|
set :remote_bin_path, "#{rvm_path}/gems/ruby-#{rvm_ruby}-#{rvm_patch}/bin/"
|
22
22
|
set :use_rvm, true
|
23
|
-
|
23
|
+
|
24
|
+
set :rvm_cmd, "source '#{rvm_path}/scripts/rvm' && rvm use #{rvm_ruby}-#{rvm_patch}@#{rvm_gemset}"
|
25
|
+
|
24
26
|
# => set :default_environment, {
|
25
27
|
# => 'PATH' => "#{rvm_path}/gems/ruby/1.9.1/bin:#{rvm_bin_path}/bin:#{remote_bin_path}:$PATH",
|
26
28
|
# => 'RUBY_VERSION' => "#{rvm_ruby}",
|
data/lib/magic_recipes/thin.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: magic_recipes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|