0
내 Heroku 응용 프로그램에서이 https://github.com/mooktakim/image_optim_bin을 사용하려고하는데 정말 어떻게해야할지 모르겠습니다. 지금은 다음 코드는 pngcrush
Node.Js : heroku 노드 응용 프로그램 안의 루비 보석에 액세스하려고 시도했습니다
exec('pngcrush -rem gAMA -rem cHRM -rem iCCP -rem sRGB ' + file + ' ' + file, function(error, stdout, stderr) {
console.log('PNGCRUSH OUTPUT: ', error, stdout, stderr);
});
를 실행하려고해야하지만 내 heroku logs
출력에 다음과 같은 오류가 발생합니다
PNGCRUSH OUTPUT: { [Error: Command failed: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'image_optim_bin' (>= 0) among 9 total gem(s) (Gem::LoadError)
이 이것은 내 Gemfile
gem 'image_optim_bin', :git => 'https://github.com/mooktakim/image_optim_bin.git'
입니다 처음에는 nodejs 응용 프로그램에서 루비 보석을 사용해 보았습니다. 그래서 그렇게하는 방법이 확실하지 않습니다. gem
을 실행하기 위해 타겟팅해야 할 특정 디렉토리가 있습니까?