Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Postgresql Database #77

Closed
nurwin opened this issue Oct 19, 2018 · 12 comments
Closed

Using Postgresql Database #77

nurwin opened this issue Oct 19, 2018 · 12 comments
Milestone

Comments

@nurwin
Copy link

nurwin commented Oct 19, 2018

Hi.. I have laravel application that run with pgsql database. is it possible to using it? in aws I will use RDS. how to integrate with it?

Thanks in advice.

@wysow
Copy link

wysow commented Oct 19, 2018

Sure you should be able to use your RDS database with the same parameters as you would do on an EC2 instance. Just use the security groups like always.

@nurwin
Copy link
Author

nurwin commented Oct 19, 2018

yes, when I run it, the apps return "error could not find driver", is bref support pgsql database?

@nurwin
Copy link
Author

nurwin commented Oct 19, 2018

should I modify the dockerfile on vendor?

@wysow
Copy link

wysow commented Oct 21, 2018

Hum... You're right, we should compile the pgsql driver for php to be used in bref.

@nurwin
Copy link
Author

nurwin commented Oct 21, 2018

@mnapoli would you like to add enhancement for this issue? thank you

@mnapoli
Copy link
Member

mnapoli commented Oct 21, 2018

@nurwin I do not need that at the moment so I will not work on that. However feel free to send a pull request to add PostgreSQL support, that would be great!

@davidavz
Copy link
Contributor

You just have to add the --with-pdo-pgsql into the Dockerfile isn't it?

@mnapoli
Copy link
Member

mnapoli commented Nov 15, 2018

I think so, I have never used it so I'm not 100% sure if it needs other dependencies though.

@thiagomarini
Copy link

Need to add RUN yum install postgresql-devel -y before --with-pdo-pgsql

@thiagomarini
Copy link

thiagomarini commented Jan 10, 2019

I've compiled a PHP binary with MySQL and Postgres if anyone wants it:

https://s3-eu-west-1.amazonaws.com/assets.weengs.com/php-7.2.5.tar.gz

Just place it inside .bref/bin/php folder and Bref won't overwrite it on deploy

@mnapoli mnapoli added this to the 0.3 milestone Jan 19, 2019
@mnapoli
Copy link
Member

mnapoli commented Jan 19, 2019

The PostgreSQL extension is available in v0.3 (see https://bref.sh/docs/environment/php.html to enable it) 🎉

@mnapoli mnapoli closed this as completed Jan 19, 2019
@nurwin
Copy link
Author

nurwin commented Jan 19, 2019

Thanks @mnapoli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants