Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/67.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Capistrano对发布目录的测试失败_Ruby On Rails_Ruby_Capistrano3 - Fatal编程技术网

Ruby on rails Capistrano对发布目录的测试失败

Ruby on rails Capistrano对发布目录的测试失败,ruby-on-rails,ruby,capistrano3,Ruby On Rails,Ruby,Capistrano3,我们从Rails 3.2升级到Rails 4.2,Capistrano从3.2.1升级到3.4 现在看来capistrano在测试发布目录之前并没有创建它。这会导致错误: ** Invoke test (first_time) ** Execute test ** Invoke load:defaults (first_time) ** Execute load:defaults ** Invoke bundler:map_bins (first_time) ** Execute bundler

我们从Rails 3.2升级到Rails 4.2,Capistrano从3.2.1升级到3.4

现在看来capistrano在测试发布目录之前并没有创建它。这会导致错误:

** Invoke test (first_time)
** Execute test
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke bundler:map_bins (first_time)
** Execute bundler:map_bins
** Invoke rvm:hook (first_time)
** Execute rvm:hook
** Invoke rvm:check (first_time)
** Execute rvm:check
** Invoke deploy:set_rails_env (first_time)
** Execute deploy:set_rails_env
** Invoke deploy:set_linked_dirs (first_time)
** Execute deploy:set_linked_dirs
** Invoke deploy (first_time)
** Execute deploy
** Invoke deploy:starting (first_time)
** Execute deploy:starting
** Invoke deploy:check (first_time)
** Execute deploy:check
** Invoke copy:check (first_time)
** Execute copy:check
** Invoke deploy:check:directories (first_time)
** Execute deploy:check:directories
** Invoke deploy:check:linked_dirs (first_time)
** Execute deploy:check:linked_dirs
** Invoke deploy:check:make_linked_dirs (first_time)
** Execute deploy:check:make_linked_dirs
** Invoke dcportal:db:create_config (first_time)
** Execute dcportal:db:create_config
** Invoke deploy:check:linked_files (first_time)
** Execute deploy:check:linked_files
** Invoke deploy:set_previous_revision (first_time)
** Execute deploy:set_previous_revision
** Invoke deploy:started (first_time)
** Execute deploy:started
** Invoke deploy:updating (first_time)
** Invoke deploy:new_release_path (first_time)
** Execute deploy:new_release_path
** Execute deploy:updating
 DEBUG [84703c58] Running /usr/bin/env [ -d ~/.rvm ] as cap@softwaredev-it2
** Invoke copy:create_release (first_time)
 DEBUG [84703c58] Command: [ -d ~/.rvm ]
** Invoke copy:deploy (first_time)

[...]

DEBUG [5c4fa563] Running /usr/bin/env if test ! -d /var/www/rails/dc/releases/20160217135156; then echo "Directory does not exist '/var/www/rails/dc/releases/20160217135156'" 1>&2; false; fi as cap@softwaredev-it2
DEBUG [5c4fa563] Command: if test ! -d /var/www/rails/dc/releases/20160217135156; then echo "Directory does not exist '/var/www/rails/dc/releases/20160217135156'" 1>&2; false; fi
DEBUG [5c4fa563]    Directory does not exist '/var/www/rails/dc/releases/20160217135156'

我不知道答案,但如果我能观察一下:您似乎在使用某种“复制”scm插件,而不是标准的hg/git/svn。scm代码负责创建发布目录;不是capistrano本身(至少在3.4中是这样)。我建议查看一下scm插件,看看它是否需要升级。谢谢。这实际上可能会有所帮助。我会发帖的,如果它有什么收获的话。这很有帮助。我们已经升级了scm插件,现在它可以工作了。