public
Description: Automate your wordpress deploys with capistrano and git
Homepage: http://www.jestro.com
Clone URL: git://github.com/jestro/wordpress-capistrano.git
some docs
jnewland (author)
Mon Nov 17 17:19:13 -0800 2008
commit  1bc8d51b8e29bdce7a13b20e1f5810410dfe034a
tree    8872e9d0876c7ce5f0e5498f481944ac5d974ef8
parent  abc0fa7b94f51218294404285bf8268f9bc72734
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
 
 
6
7
8
 
 
9
10
11
 
 
12
13
 
14
15
16
 
 
17
18
19
20
 
 
 
21
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 
 
28
29
30
 
 
31
32
33
 
 
34
35
36
 
37
38
 
 
39
40
41
 
 
 
42
43
44
45
0
@@ -1,21 +1,45 @@
0
+h2. Summary
0
+
0
+This is a repo intended for use as a template for your wordpress projects.
0
+
0
+h2. Setup
0
+
0
+* "Fork":http://github.com/jestro/wordpress-capistrano/fork this repo
0
+* Rename your project, make it private if desired
0
+* Clone your fresh repo:
0
+
0
+<pre>
0
+  <code>
0
+    git clone git@github.com:yourname/yourwordpressproject.git
0
+    cd yourwordpressproject
0
+    git submodule init
0
+    git submodule update
0
+  </code>
0
+</pre>
0
+
0
+* Create a theme in @themes@
0
+* Drop your plugins in @plugins@
0
+* Update @config/wp-config.php@
0
+* Adjust the @@
0
+
0
 h3. Switching Wordpress Versions
0
 
0
 <pre>
0
-<code>
0
-  cd wordpress
0
+  <code>
0
+    cd wordpress
0
 
0
-  #show all versions
0
-  git tag -l
0
+    #show all versions
0
+    git tag -l
0
 
0
-  #checkout a version
0
-  git checkout 2.6.3
0
+    #checkout a version
0
+    git checkout 2.6.3
0
 
0
-  cd ..
0
+    cd ..
0
 
0
-  #commit
0
-  git commit wordpress -m "use wordpress 2.6.3"
0
+    #commit
0
+    git commit wordpress -m "use wordpress 2.6.3"
0
 
0
-  #push
0
-  git push
0
-</code>
0
+    #push
0
+    git push
0
+  </code>
0
 </pre>
...
1
2
 
 
3
4
5
6
7
 
 
8
9
10
11
 
 
12
13
14
15
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
...
 
 
1
2
3
 
 
 
 
4
5
6
 
 
 
7
8
9
 
 
 
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
0
@@ -1,15 +1,35 @@
0
-set :application, "set your application name here"
0
-set :repository,  "set your repository location here"
0
+#the domain name for the server you'll be running wordpress on
0
+set :server, "localhost"
0
 
0
-# If you aren't deploying to /u/apps/#{application} on the target
0
-# servers (which is the default), you can specify the actual location
0
-# via the :deploy_to variable:
0
-# set :deploy_to, "/var/www/#{application}"
0
+#the name of this wordpress project
0
+set :application, "wordpress-capistrano-test"
0
 
0
-# If you aren't using Subversion to manage your source code, specify
0
-# your SCM below:
0
-# set :scm, :subversion
0
+#your repo
0
+set :repository,  "git@github.com:jestro/wordpress-capistrano.git"
0
 
0
-role :app, "your app-server here"
0
-role :web, "your web-server here"
0
-role :db,  "your db-server here", :primary => true
0
\ No newline at end of file
0
+#the folder that your server is configured to serve wordpress from
0
+set :deploy_to, "/Library/WebServer/Documents/wordpress"
0
+
0
+##############################################################################
0
+# You shouldn't need to touch the rest of this stuff.                        #
0
+##############################################################################
0
+
0
+default_run_options[:pty] = true
0
+set :scm, "git"
0
+set :deploy_via, :remote_cache
0
+set :branch, "master"
0
+set :git_enable_submodules, 1
0
+
0
+#allow deploys w/o having git installed locally
0
+set(:real_revision) { capture("git ls-remote #{repository} #{branch} | cut -f 1") }
0
+
0
+role :app, server
0
+role :web, server
0
+role :db,  server, :primary => true
0
+
0
+namespace :deploy do
0
+  desc "Override deploy restart to not do anything"
0
+  task :restart do
0
+    #
0
+  end
0
+end
0
\ No newline at end of file

Comments