kompanee-recipes 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/kompanee-recipes.rb +1 -1
- data/lib/kompanee-recipes/deploy.rb +5 -16
- metadata +3 -3
data/lib/kompanee-recipes.rb
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
require 'kompanee-recipes/ubuntu_server_setup'
|
|
2
2
|
require 'kompanee-recipes/app_setup'
|
|
3
3
|
require 'kompanee-recipes/bash_environment'
|
|
4
|
+
require 'bundler/capistrano'
|
|
4
5
|
|
|
5
6
|
Capistrano::Configuration.instance(:must_exist).load do
|
|
6
7
|
set :use_sudo, false
|
|
@@ -30,9 +31,9 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
30
31
|
set :app_server_name, server_name
|
|
31
32
|
set :db_server_name, server_name
|
|
32
33
|
|
|
33
|
-
set :app_ruby_version, "ruby-1.
|
|
34
|
-
set :default_ruby_version, "ruby-1.
|
|
35
|
-
set :passenger_version, "
|
|
34
|
+
set :app_ruby_version, "ruby-1.9.2-head"
|
|
35
|
+
set :default_ruby_version, "ruby-1.9.2-head"
|
|
36
|
+
set :passenger_version, "3.0.0"
|
|
36
37
|
|
|
37
38
|
######################################################################
|
|
38
39
|
# DATABASE SPECIFIC #
|
|
@@ -72,18 +73,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
72
73
|
run "touch #{File.join(current_path,'tmp','restart.txt')}"
|
|
73
74
|
end
|
|
74
75
|
|
|
75
|
-
namespace :gems do
|
|
76
|
-
desc "Install Bundled Gems"
|
|
77
|
-
task :install do
|
|
78
|
-
Net::SSH.start(web_server_ip, user) do |ssh|
|
|
79
|
-
ssh.exec!("cd #{current_path} && bundle install")
|
|
80
|
-
end
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
desc "Update Bundled Gems"
|
|
84
|
-
task :update do deploy.gems.install; end
|
|
85
|
-
end
|
|
86
|
-
|
|
87
76
|
namespace :web do
|
|
88
77
|
desc "Uses the Web Server to enable the site."
|
|
89
78
|
task :site_up do
|
|
@@ -105,7 +94,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
105
94
|
ubuntu.apache.stop
|
|
106
95
|
end
|
|
107
96
|
|
|
108
|
-
desc "
|
|
97
|
+
desc "Restarts then entire web server."
|
|
109
98
|
task :server_restart do
|
|
110
99
|
ubuntu.apache.restart
|
|
111
100
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kompanee-recipes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 13
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 9
|
|
10
|
+
version: 0.0.9
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- The Kompanee
|