Я пытаюсь развернуть Symfony 3.4
использование приложения Capistrano Version: 3.11.0 (Rake Version: 12.3.0)
с capistrano-symfony 1.0.0
но я получаю следующую ошибку:
Tasks: TOP => deploy:updated
The deploy has failed with an error: Don't know how to build task 'symfony:clear_controllers' (see --tasks)
Did you mean? symfony:console
** Invoke deploy:failed (first_time)
** Execute deploy:failed
Я сделал:
gem install capistrano
gem install bundler
gem install capistrano-symfony
bundle install
cap install production
cap production deploy
Gemfile:
# Gemfile
# source 'https://rubygems.org'
gem 'capistrano', '~> 3.11'
gem 'capistrano-symfony', '~> 1.0.0'
Capfile:
# Load DSL and set up stages
require "capistrano/setup"
# Include default deployment tasks
require "capistrano/deploy"
require 'capistrano/symfony'
require "capistrano/scm/git"install_plugin Capistrano::SCM::Git
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }
deploy.rb
# config valid for current version and patch releases of Capistrano
lock "~> 3.4"
set :application, "Test"set :repo_url, "[email protected]:myuser/myrepoishere.git"
# Default deploy_to directory is /var/www/my_app_name
set :deploy_to, "/var/www/html/Test"
# Default value for keep_releases is 5
set :keep_releases, 3
Задача ещё не решена.
Других решений пока нет …