diff --git a/lib/capistrano/tasks/assets.rake b/lib/capistrano/tasks/assets.rake index b4897b4..92c74c8 100644 --- a/lib/capistrano/tasks/assets.rake +++ b/lib/capistrano/tasks/assets.rake @@ -33,8 +33,9 @@ namespace :fos do DESC task :dump do on roles(:app) do - execute "cd #{release_path} && php " + fetch(:symfony_console_path) + " --env=prod fos:js-routing:dump --target=web/js/fos_js_routes_prod.js" + execute "cd #{release_path} && php " + fetch(:symfony_console_path) + " --env=prod fos:js-routing:dump --target=web/js/fos_js_routes.js" + execute "cd #{release_path} && cp web/js/fos_js_routes.js web/js/fos_js_routes_prod.js" end end end -end \ No newline at end of file +end