Permalink
Browse files

added hook point for sidebar.

  • Loading branch information...
1 parent 1ebd381 commit 4280a16f9e9a1a543c63aa4a2eabc4f2a02a97dc @yandod committed Feb 4, 2012
View
37 Capfile
@@ -0,0 +1,37 @@
+load 'deploy'
+
+role :app, "candycane.sakura.ne.jp"
+set :scm, :git
+#set :repository, "git@thechaw.com:candycane.git"
+set :repository, "git@github.com:yandod/candycane.git"
+set :branch, 'master'
+set :user, "candycane"
+
+set :application, "candycane"
+set :deploy_via, :checkout
+set :deploy_to, "/home/candycane/apps/#{application}"
+set :use_sudo, false
+set :git_enable_submodules, 1
+
+namespace :deploy do
+ # disable restarting
+ task :restart do
+ end
+
+ #
+ # place core.php and database.php in shared/config-master/
+ # place tcpdf and tcpdf_php4 in shared/lib/
+ #
+ task :finalize_update do
+ run <<-CMD
+ cp #{shared_path}/config-master/database.php #{latest_release}/app/config/ &&
+ cp #{shared_path}/config-master/core.php #{latest_release}/app/config/ &&
+ ln -s #{shared_path}/lib/tcpdf #{latest_release}/app/vendors/tcpdf &&
+ ln -s #{shared_path}/lib/tcpdf_php4 #{latest_release}/app/vendors/tcpdf_php4 &&
+ rm -Rf #{latest_release}/app/files &&
+ ln -s #{shared_path}/files #{latest_release}/app/files &&
+ rm -Rf #{latest_release}/app/plugins/install &&
+ chmod 2777 #{latest_release}/app/tmp #{latest_release}/app/plugins
+ CMD
+ end
+end
Oops, something went wrong.

0 comments on commit 4280a16

Please sign in to comment.