home icon contact icon rss icon

Blog-Upgrade

a upgraded today this blog to the newest version of mephisto via git. It works quit well, i just need to add 2 custom capistrano tasks to get it working:

namespace :app do
  desc "Copy the correct config files to config/" 
  task :copy_config_files, :roles => [:app, :db, :web] do
    invoke_command "cp -a #{deploy_to}/config/* #{release_path}/config/", :via => run_method
  end
end
after 'deploy:update_code', 'app:copy_config_files'

i changed the standard task to copy directories as well, which is need for the initializer/session_store.rb …

namespace :app do
  desc "Copy the correct config files to config/" 
  task :copy_mephisto_files, :roles => [:app, :db, :web] do
    invoke_command "cp -a #{deploy_to}/shared/mephisto_files/* #{release_path}/", :via => run_method
  end
end
after 'deploy:update_code', 'app:copy_mephisto_files'

this one it copies the themes directory and the uploaded assets ..

that was all…

Suchen

-->