Shopware Deployment mit Capistrano/Capifony?

Hallo in die Runde, zunächst danke für die ersten Infos/Anregungen. Wir haben nun einen Weg zum Deploy via Capistrano2 gefunden. Letztlich war die Lösung, einige Aufgaben (tasks) vor dem deploy:update auszuführen und zusätzlich nach dem deploy:update weitere Aufgaben zu erledigen. Die tasks im Einzelnen: before "deploy:update", "deploy:shopware\_install" after "deploy:update", "deploy:shopware\_fix\_permissions", "deploy:shopware\_create\_config\_symlinks", "deploy:shopware\_delete\_unwanted\_files", "deploy:shopware\_run\_composer", "deploy:cleanup" namespace :deploy do task :shopware\_install do desc "install shopware using git" run "git clone https://github.com/shopware/shopware.git #{release\_path}/public/" end task :shopware\_fix\_permissions do desc "fix shopware permissions" run "chmod 750 #{release\_path} #{release\_path}/public/ #{release\_path}/public/themes/ #{release\_path}/public/themes/Frontend/" end task :shopware\_create\_config\_symlinks do desc "create shopware symlinks" # remove original .htaccess and symlink to config file run "rm #{latest\_release}/public/.htaccess" run "ln --symbolic #{shared\_path}/config/htaccess\_env #{latest\_release}/public/.htaccess" # symlink config config.php run "ln --symbolic #{shared\_path}/config/config\_env.php #{latest\_release}/public/config.php" # remove original and symlink shared media directory run "rm -rf #{latest\_release}/public/media" run "ln --symbolic #{shared\_path}/content/media #{latest\_release}/public/media" end task :shopware\_delete\_unwanted\_files do desc "delete unwanted shopware files (e.g. installer files)" run "rm -rf #{latest\_release}/public/recovery/install" end task :shopware\_run\_composer do run "php /path/to/composer.phar install --working-dir #{current\_path}/public/" end end Wer Interesse an unserem Setup und unserer deploy.rb hat, kann gerne eine PM an mich senden. Da meine in diesem Thread gestellte Frage für mich geklärt ist, setze ich den Thread auf gelöst. Nochmals danke in die Runde und reingehau’n, /burn

1 „Gefällt mir“