R
Railway

✋|help

Installing php-gd extension

Mmr.nermin9/1/2023
Is there a way for me to use Nixpacks to install php-gd in the setup stage of the build process. Or even better is there a way to install additional packages in Railway beside Nixpacks
Project ID: 1b6c285c-5a60-46bd-bb8e-850090092532
Bbrody1929/1/2023
@interstellartaco is our php guy
Mmr.nermin9/1/2023
@Brody can I ask him directly?
Bbrody1929/1/2023
he will show up when he has the time
please do not ping
Mmr.nermin9/1/2023
ok sure thing. Thank you very much @Brody
HHamletS9/1/2023
There is truly an option, but I don't know if it is working since for me isn't.

It is the NIXPACKS_PCKGS=["...","name of the nix package you want"]

The ... Is for all the packages by default de project require
And the others packages you want you can search it in the nix repositories and added to this argument.


But again, I tried this approach in order to install mongoDB drivers for mi php/Laravel project and it still not working.
I hope you have a better result, you can search more about this in the nixpacks documentation.


(Edit: also if you need there is a very similar approach but with apt-ger for apt packages)
Bbrody1929/1/2023
you should be doing that kind of configuration in a nixpacks.toml file, as im sure thats the wrong syntax for the variable
Iinterstellartaco9/1/2023
Add "ext-gd": "*" to your composer.json.
Hmm, actually, it doesn't seem to be available in the Nix registry - where is this extension from?
Mmr.nermin9/4/2023
@interstellartaco there is a package in nixpacks packages but when i try to opt in the builder stages IT doesn’t build as IT should.
Iinterstellartaco9/4/2023
What's the package called?
Mmr.nermin9/4/2023
IT is called php82Extensions.gd and its used for connecting laravel to aws S3 to upload files to the bucket.
Iinterstellartaco9/4/2023
Alright, then this should work
Mmr.nermin9/4/2023
Ok i will try thank you very much @interstellartaco

Looking for more? Join the community!

Recommended Posts
bind [::1]:5433: Cannot assign requested addressI'm trying to use an SSH tunnel and need to bind to my local port 5433 but keep getting this error. charged for hobby plan ?I have been charged 5 dollars for the hobby plan whilst my usage was below it and every month i had Custom Domain - Waiting for DNS updateI have deployed an app on Railway and set up a custom domain. I've tried to get the custom domain tDeployment has crashed with FileNotFoundError: [Errno 2]Hi. I am have problem with my JSON file. I try to deploy my flask chatbot project the have function nocodb - update failedHi I am testing the railway nocodb hosting, I was informed by the nocodb that there is an update thaDoes waived hobby plan fee expire?I am on hobby plan (previously developer) and I have the hobby plan waived. I would like to confirm Deployment issues in Golang projectProject id : 4e543459-a744-4198-970b-be420281426a I am trying to deploy a go lang application, it's Using a custom domain with cloudflarehi! I'm ready to deploy my project to my domain, and now railway has detected my cname record, but icron job timezoneGreetings! I want to host a script which runs at a certain time relative to my time zone (GMT+3). Whtsc: Permission deniedI just subscribed to the Hobby Plan and am trying to deploy my first backend. It was working fine iPostgres MemoryIt is possible run commands like 'top' or 'pg_top'? I need check memory usage for my Postgres instanUpgrade to pro, how to "redeploy" postgres / redis to take advantage of the PRO infrastructure?I understand how to re-deploy my app to take advantage of the PRO infrastructure (after dragging it Railway states that my free trial is over, but I only used 2.5$My Railway deployment was paused, but I didn't use the 5$. Why is that?Sync service hostname to environment variable with VercelIs it possible to take the hostname of a given service and push it into an environment variable on aBot TelegramHi i want to ask if is possible to deploy a telegram bot in railway, because i read that mirrors/useApplication failed to respondHello, I just bought the Hobby Plan and I tried to deploy an Express app I made, the issue is the sevm.max_map_count [65530] is too low during deployementHi everyone, I currently try to deploy a SonarQube application on Railway and during deployement, I Errors Installing Cal.com TemplateHello, I am running into issues installing the cal template. Error: `ERROR: failed to solve: procIs private networking down?Hey is private networking down or something? Because currently all my builds are crashing because thHow to save a bit in MySQL database?I am trying to put data in my table in SQL, but whenever I come across bit, the table does not accep