capcake 2.0.3 → 3.0.0
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 +7 -0
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/LICENSE +17 -22
- data/README.md +81 -0
- data/Rakefile +1 -0
- data/capcake.gemspec +25 -0
- data/lib/capcake.rb +0 -574
- data/lib/capistrano/cakephp.rb +13 -0
- data/lib/capistrano/cakephp/asset_compress.rb +1 -0
- data/lib/capistrano/cakephp/cake.rb +1 -0
- data/lib/capistrano/cakephp/defaults.rb +11 -0
- data/lib/capistrano/cakephp/migrations.rb +1 -0
- data/lib/capistrano/tasks/asset_compress.rake +25 -0
- data/lib/capistrano/tasks/cake.rake +25 -0
- data/lib/capistrano/tasks/migrations.rake +44 -0
- metadata +124 -58
- data/README.markdown +0 -126
- data/lib/templates/create_database.rsql +0 -6
- data/lib/templates/database.rphp +0 -14
- data/lib/templates/deploy.rb.default +0 -43
- data/lib/templates/maintenance.rhtml +0 -52
@@ -1,6 +0,0 @@
|
|
1
|
-
<% mysql_grant_locations.each do |location| %>GRANT <%= mysql_grant_priv_type %> ON <%= db_name %>.* TO '<%= db_login %>'@'<%= location %>' IDENTIFIED BY '<%= db_password %>';
|
2
|
-
<% end %>
|
3
|
-
|
4
|
-
CREATE DATABASE IF NOT EXISTS <%= db_name %> CHARACTER SET = <%= db_encoding %>;
|
5
|
-
|
6
|
-
FLUSH PRIVILEGES;
|
data/lib/templates/database.rphp
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
<?php
|
2
|
-
class DATABASE_CONFIG {
|
3
|
-
public $default = array(
|
4
|
-
'<%= db_driver_or_datasource %>' => '<%= db_driver_or_datasource_value %>',
|
5
|
-
'persistent' => '<%= db_persistent %>',
|
6
|
-
'host' => '<%= db_host %>',
|
7
|
-
'login' => '<%= db_login %>',
|
8
|
-
'password' => '<%= db_password %>',
|
9
|
-
'database' => '<%= db_name %>',
|
10
|
-
'prefix' => '<%= db_prefix %>',
|
11
|
-
'encoding' => '<%= db_encoding %>',
|
12
|
-
);
|
13
|
-
}
|
14
|
-
?>
|
@@ -1,43 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'capcake'
|
3
|
-
|
4
|
-
set :application, "your_app_name" # Your application name
|
5
|
-
|
6
|
-
set :scm, :git
|
7
|
-
set :repository, "git@domain.com:path/to/repo" # Your repository url
|
8
|
-
set :scm_username, "username" # Your username to log into your repository
|
9
|
-
set :scm_passphrase, Capistrano::CLI.password_prompt("Type your ssh passphrase for user #{scm_username}: ")
|
10
|
-
set :branch, "master"
|
11
|
-
set :use_sudo, false
|
12
|
-
|
13
|
-
set :deploy_via, :remote_cache
|
14
|
-
set(:group_writable, false)
|
15
|
-
|
16
|
-
###
|
17
|
-
# Staging
|
18
|
-
###
|
19
|
-
|
20
|
-
task :staging do
|
21
|
-
set :deploy_to, "/var/www/application/staging" # Your staging root path
|
22
|
-
set :user, "user" # Your staging user
|
23
|
-
set :group, "www-data" # Your staging group
|
24
|
-
server "staging.example.com", :web # Your staging server url
|
25
|
-
end
|
26
|
-
|
27
|
-
###
|
28
|
-
# Production
|
29
|
-
###
|
30
|
-
|
31
|
-
task :production do
|
32
|
-
set :deploy_to, "/var/www/application/production" # Your production root path
|
33
|
-
set :user, "user" # Your production user
|
34
|
-
set :group, "www-data" # Your production group
|
35
|
-
server "example.com", :web # Your production server url
|
36
|
-
end
|
37
|
-
|
38
|
-
ssh_options[:forward_agent] = true
|
39
|
-
|
40
|
-
set :cake_branch, " "
|
41
|
-
|
42
|
-
capcake
|
43
|
-
|
@@ -1,52 +0,0 @@
|
|
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>
|