Skip to content

Commit

Permalink
Fix Lithium library path + minor cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
mehlah committed Aug 14, 2011
1 parent 30e4f0f commit c752164
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/capium.rb
Expand Up @@ -27,6 +27,8 @@ def _cset(name, *args, &block)


_cset(:deploy_to) { "/u/apps/#{application}" } _cset(:deploy_to) { "/u/apps/#{application}" }
_cset(:revision) { source.head } _cset(:revision) { source.head }

# Lithium variables
_cset(:lithium_repo) { "git://github.com/UnionOfRAD/lithium.git"} _cset(:lithium_repo) { "git://github.com/UnionOfRAD/lithium.git"}
_cset(:lithium_branch) { "master" } _cset(:lithium_branch) { "master" }


Expand Down Expand Up @@ -154,6 +156,7 @@ def capium()
after("deploy:setup", "lithium:setup") after("deploy:setup", "lithium:setup")
after("deploy:symlink", "lithium:configure_library_path", "lithium:clear_cache") after("deploy:symlink", "lithium:configure_library_path", "lithium:clear_cache")
end end

# ========================================================================= # =========================================================================
# These are the tasks that are available to help with deploying web apps, # These are the tasks that are available to help with deploying web apps,
# and specifically, Rails applications. You can have cap give you a summary # and specifically, Rails applications. You can have cap give you a summary
Expand Down Expand Up @@ -465,7 +468,7 @@ def capium()
This directory contain a copy of the Lithium core. This directory contain a copy of the Lithium core.
DESC DESC
task :configure_library_path do task :configure_library_path do
run "sed -i \"s/^define('LITHIUM_LIBRARY_PATH.*$/define('LITHIUM_LIBRARY_PATH', dirname(dirname(LITHIUM_APP_PATH)) . '\\/shared\\/libraries');/\" #{release_path}/config/bootstrap/libraries.php" run "sed -i \"s=^define('LITHIUM_LIBRARY_PATH.*$=define('LITHIUM_LIBRARY_PATH', '#{shared_path}/libraries');=\" #{release_path}/config/bootstrap/libraries.php"
end end


desc <<-DESC desc <<-DESC
Expand Down

0 comments on commit c752164

Please sign in to comment.