app-deployer 0.0.3
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.
- checksums.yaml +15 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +174 -0
- data/Rakefile +2 -0
- data/app-deployer.gemspec +19 -0
- data/lib/app-deployer.rb +11 -0
- data/lib/app-deployer/compass.rb +8 -0
- data/lib/app-deployer/composer.rb +68 -0
- data/lib/app-deployer/framework/cakephp/cakephp.rb +215 -0
- data/lib/app-deployer/framework/cakephp/templates/database.php.erb +14 -0
- data/lib/app-deployer/framework/lithium/lithium.rb +213 -0
- data/lib/app-deployer/framework/lithium/templates/connections.php.erb +64 -0
- data/lib/app-deployer/helpers.rb +142 -0
- data/lib/app-deployer/mysql/mysql.rb +42 -0
- data/lib/app-deployer/mysql/templates/create_database.sql.erb +7 -0
- data/lib/app-deployer/railsless-deploy.rb +399 -0
- data/lib/app-deployer/server/apache/apache.rb +59 -0
- data/lib/app-deployer/server/apache/templates/apache-vhost.erb +17 -0
- data/lib/app-deployer/server/apache/templates/maintenance.rhtml +52 -0
- data/lib/app-deployer/server/php-fpm.rb +10 -0
- data/lib/app-deployer/version.rb +5 -0
- metadata +94 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<VirtualHost *:80>
|
|
2
|
+
|
|
3
|
+
# Admin email, Server Name (domain name) and any aliases
|
|
4
|
+
ServerAdmin <%= server_admin %>
|
|
5
|
+
ServerName <%= server_name %>
|
|
6
|
+
ServerAlias <%= server_alias %>
|
|
7
|
+
|
|
8
|
+
# Index file and Document Root (where the public files are located)
|
|
9
|
+
DirectoryIndex <%= directory_index %>
|
|
10
|
+
DocumentRoot /home/<%= user %>/websites/<%= server_name %>/public
|
|
11
|
+
|
|
12
|
+
# Custom log file locations
|
|
13
|
+
LogLevel warn
|
|
14
|
+
ErrorLog /home/<%= user %>/websites/<%= server_name %>/logs/error.log
|
|
15
|
+
CustomLog /home/<%= user %>/websites/<%= server_name %>/logs/access.log combined
|
|
16
|
+
|
|
17
|
+
</VirtualHost>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
+
|
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
5
|
+
|
|
6
|
+
<head>
|
|
7
|
+
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
|
8
|
+
<title>System down for maintenance</title>
|
|
9
|
+
|
|
10
|
+
<style type="text/css">
|
|
11
|
+
div.outer {
|
|
12
|
+
position: absolute;
|
|
13
|
+
left: 50%;
|
|
14
|
+
top: 50%;
|
|
15
|
+
width: 500px;
|
|
16
|
+
height: 300px;
|
|
17
|
+
margin-left: -260px;
|
|
18
|
+
margin-top: -150px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.DialogBody {
|
|
22
|
+
margin: 0;
|
|
23
|
+
padding: 10px;
|
|
24
|
+
text-align: left;
|
|
25
|
+
border: 1px solid #ccc;
|
|
26
|
+
border-right: 1px solid #999;
|
|
27
|
+
border-bottom: 1px solid #999;
|
|
28
|
+
background-color: #fff;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
body { background-color: #fff; }
|
|
32
|
+
</style>
|
|
33
|
+
</head>
|
|
34
|
+
|
|
35
|
+
<body>
|
|
36
|
+
|
|
37
|
+
<div class="outer">
|
|
38
|
+
<div class="DialogBody" style="text-align: center;">
|
|
39
|
+
<div style="text-align: center; width: 200px; margin: 0 auto;">
|
|
40
|
+
<p style="color: red; font-size: 16px; line-height: 20px;">
|
|
41
|
+
The system is down for <%= reason ? reason : "maintenance" %>
|
|
42
|
+
as of <%= Time.now.strftime("%H:%M %Z") %>.
|
|
43
|
+
</p>
|
|
44
|
+
<p style="color: #666;">
|
|
45
|
+
It'll be back <%= deadline ? deadline : "shortly" %>.
|
|
46
|
+
</p>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
</body>
|
|
52
|
+
</html>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Capistrano::Configuration.instance(:must_exist).load do
|
|
2
|
+
after('deploy:create_symlink', 'php_fpm:reload')
|
|
3
|
+
|
|
4
|
+
namespace :php_fpm do
|
|
5
|
+
desc "Reload PHP5-FPM service (requires sudo access to /usr/sbin/service php5-fpm reload)"
|
|
6
|
+
task :reload, :roles => :app do
|
|
7
|
+
run "sudo /usr/sbin/service php5-fpm reload"
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: app-deployer
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.3
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Ricky Dunlop
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2013-08-08 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: capistrano
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ! '>='
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 2.13.5
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ! '>='
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 2.13.5
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: colored
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ! '>='
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: 1.2.0
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ! '>='
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: 1.2.0
|
|
41
|
+
description: Features a modular design allowing it to be extended for various frameworks.
|
|
42
|
+
Includes recipes for CakePHP, Lithium, MySQL, Nginx, Apache. Uses Railsless deploy
|
|
43
|
+
email:
|
|
44
|
+
- ricky@rehabstudio.com
|
|
45
|
+
executables: []
|
|
46
|
+
extensions: []
|
|
47
|
+
extra_rdoc_files: []
|
|
48
|
+
files:
|
|
49
|
+
- .gitignore
|
|
50
|
+
- Gemfile
|
|
51
|
+
- LICENSE
|
|
52
|
+
- README.md
|
|
53
|
+
- Rakefile
|
|
54
|
+
- app-deployer.gemspec
|
|
55
|
+
- lib/app-deployer.rb
|
|
56
|
+
- lib/app-deployer/compass.rb
|
|
57
|
+
- lib/app-deployer/composer.rb
|
|
58
|
+
- lib/app-deployer/framework/cakephp/cakephp.rb
|
|
59
|
+
- lib/app-deployer/framework/cakephp/templates/database.php.erb
|
|
60
|
+
- lib/app-deployer/framework/lithium/lithium.rb
|
|
61
|
+
- lib/app-deployer/framework/lithium/templates/connections.php.erb
|
|
62
|
+
- lib/app-deployer/helpers.rb
|
|
63
|
+
- lib/app-deployer/mysql/mysql.rb
|
|
64
|
+
- lib/app-deployer/mysql/templates/create_database.sql.erb
|
|
65
|
+
- lib/app-deployer/railsless-deploy.rb
|
|
66
|
+
- lib/app-deployer/server/apache/apache.rb
|
|
67
|
+
- lib/app-deployer/server/apache/templates/apache-vhost.erb
|
|
68
|
+
- lib/app-deployer/server/apache/templates/maintenance.rhtml
|
|
69
|
+
- lib/app-deployer/server/php-fpm.rb
|
|
70
|
+
- lib/app-deployer/version.rb
|
|
71
|
+
homepage: ''
|
|
72
|
+
licenses: []
|
|
73
|
+
metadata: {}
|
|
74
|
+
post_install_message:
|
|
75
|
+
rdoc_options: []
|
|
76
|
+
require_paths:
|
|
77
|
+
- lib
|
|
78
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - ! '>='
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0'
|
|
83
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
|
+
requirements:
|
|
85
|
+
- - ! '>='
|
|
86
|
+
- !ruby/object:Gem::Version
|
|
87
|
+
version: '0'
|
|
88
|
+
requirements: []
|
|
89
|
+
rubyforge_project:
|
|
90
|
+
rubygems_version: 2.0.3
|
|
91
|
+
signing_key:
|
|
92
|
+
specification_version: 4
|
|
93
|
+
summary: Deploy PHP apps using Capistrano
|
|
94
|
+
test_files: []
|