kompanee-recipes 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of kompanee-recipes might be problematic. Click here for more details.
- data/lib/kompanee-recipes/deploy.rb +57 -1
- data/lib/kompanee-recipes.rb +1 -1
- metadata +3 -3
@@ -1,8 +1,64 @@
|
|
1
1
|
require 'kompanee-recipes/ubuntu_server_setup'
|
2
2
|
require 'kompanee-recipes/app_setup'
|
3
3
|
require 'kompanee-recipes/bash_environment'
|
4
|
-
|
4
|
+
|
5
5
|
Capistrano::Configuration.instance(:must_exist).load do
|
6
|
+
set :use_sudo, false
|
7
|
+
set :default_shell, false
|
8
|
+
set :rake, "bundle install; bundle exec rake"
|
9
|
+
|
10
|
+
######################################################################
|
11
|
+
# SERVER SPECIFIC #
|
12
|
+
######################################################################
|
13
|
+
set :domain, "thekompanee.com"
|
14
|
+
|
15
|
+
set :user, "deploy"
|
16
|
+
set :user_home, "/home/#{user}"
|
17
|
+
set :deploy_dir, "/var/www"
|
18
|
+
set :deploy_name, "#{application_short}.#{domain}"
|
19
|
+
set :deploy_to, "#{deploy_dir}/#{deploy_name}"
|
20
|
+
|
21
|
+
set :server_ip, "174.143.210.58"
|
22
|
+
set :app_server_ip, server_ip
|
23
|
+
set :web_server_ip, server_ip
|
24
|
+
set :db_server_ip, server_ip
|
25
|
+
|
26
|
+
set :server_name, "zeus.#{domain}"
|
27
|
+
set :web_server_name, server_name
|
28
|
+
set :app_server_name, server_name
|
29
|
+
set :db_server_name, server_name
|
30
|
+
|
31
|
+
set :app_ruby_version, "ruby-1.8.7-head"
|
32
|
+
set :default_ruby_version, "ruby-1.8.7-head"
|
33
|
+
set :passenger_version, "2.2.13"
|
34
|
+
|
35
|
+
######################################################################
|
36
|
+
# DATABASE SPECIFIC #
|
37
|
+
######################################################################
|
38
|
+
set(:db_root_password) {Capistrano::CLI.password_prompt("Root Password For DB: ")}
|
39
|
+
set(:db_app_password) {Capistrano::CLI.password_prompt("App Password For DB: ")}
|
40
|
+
|
41
|
+
######################################################################
|
42
|
+
# VERSION CONTROL #
|
43
|
+
######################################################################
|
44
|
+
set :scm, :git
|
45
|
+
set :github_account, "thekompanee"
|
46
|
+
set :repository, "git@github.com:#{github_account}/#{application}.git"
|
47
|
+
set :branch, "master"
|
48
|
+
set :deploy_via, :remote_cache
|
49
|
+
ssh_options[:forward_agent] = true
|
50
|
+
|
51
|
+
######################################################################
|
52
|
+
# SERVER ROLE SETUP #
|
53
|
+
######################################################################
|
54
|
+
role :web, web_server_name
|
55
|
+
role :app, app_server_name
|
56
|
+
role :db, db_server_name, :primary => true
|
57
|
+
|
58
|
+
role :ubuntu, web_server_name
|
59
|
+
role :apache, web_server_name
|
60
|
+
role :mysql, db_server_name
|
61
|
+
|
6
62
|
######################################################################
|
7
63
|
# DEPLOYMENT TASKS #
|
8
64
|
######################################################################
|
data/lib/kompanee-recipes.rb
CHANGED
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: 25
|
5
5
|
prerelease: false
|
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
|
- The Kompanee
|