Giter VIP home page Giter VIP logo

Comments (7)

fool avatar fool commented on May 20, 2024 1

I realize this issue is long-fallow, but I think two things are going on here:

  1. we aren't going to install the libraries necessary to build the pg gem which is the proximate cause of our automatic bundler command fail. I understand this is not what you requested, but it would "work" for some version of work if they were there :)
  2. we need to allow you to set flags to bundle install, so I have opened a new enhancement request to do this: #85

from build-image.

calavera avatar calavera commented on May 20, 2024

can you post the error here? is it because the bundler version is too old? we should be able to fix that.

from build-image.

abitrolly avatar abitrolly commented on May 20, 2024

Full log is in buildlog.txt. Specific error:

1:03:07 AM: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
...
An error occurred while installing pg (0.18.4), and Bundler cannot continue.
Make sure that `gem install pg -v '0.18.4'` succeeds before bundling.

gem install pg should never be executed, because it is only present in production section of our Gemfile:

group :production do
  gem 'puma', '~> 3.0'
  gem 'pg'
end

And all that happens, because Netlify executes bundler itself and fails before custom script even has a chance to start

if [[ -f Gemfile ]]; then

from build-image.

calavera avatar calavera commented on May 20, 2024

yes, we run bundler to install dependencies directly before running any build script, that's a behavior that we're not going to change. But we can probably change the the script to take additional flags from an env variable, so you could set something like BUNDLER_FLAGS="--without production" in your site settings.

from build-image.

abitrolly avatar abitrolly commented on May 20, 2024

Either that, or flag that disables automatic ruby step will help.

from build-image.

calavera avatar calavera commented on May 20, 2024

can you give me the name of your site in Netlify, I'd like to look at the problem further.

from build-image.

abitrolly avatar abitrolly commented on May 20, 2024

yes, it is hackerspace-by

from build-image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.