Testing nixpacks and having a problem with mysql2
I have a project that's building fine with Heroku Buildpacks, I tried turning on nixpacks and it's having an issue with mysql2.
14 Replies
That looks like an issue with your ruby stuff?
#16 33.64 An error occurred while installing mysql2 (0.5.4), and Bundler cannot continue.
#16 33.64 Make sure that
gem install mysql2 -v '0.5.4'
succeeds before bundling.
It's as if your lockfile or w/e doesn't specify/fetch the correct versionmysql2 0.5.4 is specified in the Gemfile.lock
apparently I can see the full error here why it failed to build
Try adding the environment variable
NIXPACKS_APT_PKGS=“libmysqlclient-dev”
Sounds like we need to be detecting if the application uses MySQL and getting the apt package required
🚀
Worked?
#9 4.362 E: Package 'libmysqlclient-dev' has no installation candidate
googling xD
Hmm
default-libmysqlclient-dev
?
yesss 🙂 just trying that
in the nixpack docs:
Ruby | Nixpacks
App source + Nix packages + Docker = Image
Ruby | Nixpacks
App source + Nix packages + Docker = Image
it runs a build command, is it possible to change that?
NIXPACKS_BUILD_CMD
right
NIXPACKS_START_CMD
gonna try these
Ok thing is building now, some strange SSL issue though
think i fixed that... woop
nearly there
think that's all working 🔥
thanks cooper
now to get back to Anilifts and 👨💻
if only I could get vercel to deploy a react app in a reasonable time now...
Hey Mac. I wanna add this so that it works right off the bad for Nixpacks. What did you end up having to add?
GitHub
Ruby: install libmysqlclient-dev when MySQL is detected · Issue #42...
Is there an existing issue for this? I have searched the existing issues Describe the bug From this Discord thread https://discord.com/channels/713503345364697088/1010103179544887376/10101031795448...
Yes sure! I’ll check for you in the morning!