오늘 (왜 그런지 모르겠다 !!!!) 저는 카피 스트라 노와 함께 프로젝트를 전개 할 수 없습니다. NoMethodError : 정의되지 않은 메소드`start_with? '
나는이 작업을
namespace :deploy do
# Theme path
set :theme_path, Pathname.new('web/app/themes').join(fetch(:theme_name))
# Local Paths
set :local_theme_path, Pathname.new(File.dirname(__FILE__)).join('../').join(fetch(:theme_path))
set :local_dist_path, fetch(:local_theme_path).join('dist')
task :compile do
run_locally do
within fetch(:local_theme_path) do
execute "git checkout #{fetch(:branch)}"
execute :gulp, '--production'
end
end
end
task :copy do
on roles(:web) do
# Remote Paths (Lazy-load until actual deploy)
set :remote_dist_path, -> { release_path.join(fetch(:theme_path)).join('dist') }
info " Your local distribution path: #{fetch(:local_dist_path)} "
info " Boom!!! Your remote distribution path: #{fetch(:remote_dist_path)} "
info " Uploading files to remote "
upload! fetch(:local_dist_path).to_s, fetch(:remote_dist_path), recursive: true
end
end
task assets: %w(compile copy)
end
카피 스트라 노 인쇄이 오류
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as ec2->[email protected]*********: undefined method `start_with?' for #Pathname:0x0000*fc***a****
Caused by:
NoMethodError: undefined method `start_with?' for #Pathname:0x0000*fc***a****
를 시작
나는 모든 시도 : 등 제거 노드, 루비, ... 엄마 아무것도 변화. 누군가 나를 도울 수 있습니까?감사
가 최근에 어떤 바꾼 거니? 뭔가 경로와 관련이 있습니다. –
내 서버에서 루비 -v = 루비 2.0.0p648 (2015-12-16) [x86_64-linux] – mikmprdd
"보석 업데이트"만 수행 ... – mikmprdd