Error about nokogiri while capistrano deployment on ubuntu server

后端 未结 4 1106
一个人的身影
一个人的身影 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:41

    If you're using Capistrano 3.x you can do the following in your deploy.rb file (or environment specific file i.e. deploy/production.rb)

    set :bundle_env_variables, { 'NOKOGIRI_USE_SYSTEM_LIBRARIES' => 1 }
    

    This way you avoid overriding the bundle install task. This will set the given env variables when running bundle install.

提交回复
热议问题