Error about nokogiri while capistrano deployment on ubuntu server

后端 未结 4 1103
一个人的身影
一个人的身影 2021-02-02 01:10

While bundle:install phase after deploy:finalize_update,i\'m getting an error about nokogiri. It suggests ,

 ** [out :: *******] Make s         


        
4条回答
  •  逝去的感伤
    2021-02-02 01:51

    Based on @zekus answer, I created a new task in capistrano like this:

      task :custom_bundle_install, roles: :app do
        run "cd /home/#{user}/apps/#{application}/releases/#{release_name} && NOKOGIRI_USE_SYSTEM_LIBRARIES=1 bundle install --gemfile /home/#{user}/apps/#{application}/releases/#{release_name}/Gemfile --path /home/#{user}/apps/#{application}/shared/bundle --deployment --quiet --without development test"
      end
      before "bundle:install", "deploy:custom_bundle_install"
    

    This worked for me pretty well.

提交回复
热议问题