1
我嘗試使用capifony部署我的Ubuntu的服務器上我的Symfony 2應用程序,但它不能當我使用cap deploy
帽部署失敗的資產步驟
我得到了以下錯誤:
--> Installing bundle's assets..............................✘
*** [err :: mysite.com] PHP Warning: require_once(/home/mysite.com/www/releases/20130307125604/app/bootstrap.php.cache): failed to open stream: No such file or directory in /home/mysite.com/www/releases/20130307125604/app/console on line 10
*** [err :: mysite.com] PHP Fatal error: require_once(): Failed opening required '/home/mysite.com/www/releases/20130307125604/app/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /home/mysite.com/www/releases/20130307125604/app/console on line 10
*** [deploy:update_code] rolling back
failed: "sh -c 'sh -c '\\''cd /home/mysite.com/www/releases/20130307125604 && php app/console assets:install web --env=prod'\\'''" on mysite.com
這是我的deploy.rb
set :application, "mysite"
set :domain, "#{application}.com"
set :deploy_to, "/home/#{domain}/www"
ssh_options[:user] = 'root'
set :repository, "[email protected]:Me/mysite.git"
set :scm, :git
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `subversion`, `mercurial`, `perforce`, or `none`
set :model_manager, "doctrine"
# Or: `propel`
role :web, domain # Your HTTP server, Apache/etc
role :app, domain # This may be the same as your `Web` server
role :db, domain, :primary => true # This is where Symfony2 migrations will run
set :use_sudo, false
set :keep_releases, 3
如何解決這個問題?
哪個Symfony的版本? – 2013-03-07 15:30:51
Symfony 2.2.1-dev – Tib 2013-03-09 10:18:06