postgres-crate, pallet-test-env, and stable branches

42 views
Skip to first unread message

upgrad...@gmail.com

unread,
Jan 15, 2015, 10:54:47 AM1/15/15
to palle...@googlegroups.com
Hi all, 

I've successfully wired up my project so that I can build and completely configure a server with apache httpd, postgres, and deploy a http-kit app. I must admit that it's really amazing that I can do all of the server configuration with just a few commands! This is really powerful stuff!

As I was getting things working, I noticed that the 0.8.x version of the postgres crate is in need of a few updates. For example, ubuntu 14.04 installs 9.3 by default and postgres 9.3 uses a new unix_socket_directories option. (I see a pull request for this here: https://github.com/pallet/postgres-crate/pull/9). I'd also like to add support for ubuntu 14.10 to use postgres 9.4. 

Now that I have a better understanding of how to use pallet, I'd like to dive deeper to look under the hood and I thought a good way to do that would be to write a few tests to ensure postgres works on ubuntu 14.04 and 14.10 with correct versions. 

I found the pallet-test-env project. Is pallet-test-env being used to test any crates currently? Also, is there a version 0.8.0 crate out there that has a good coverage of test cases that I might use as reference for best practices when testing crates?

Also, it seems a lot of the 0.8.0 crates haven't been actively developed in a few months. Is it worth the time fixing them up? The palletops site says that 0.7.x is the stable version and I saw a post earlier that work is being done on pallet 0.9.0? Is that still the case? And if so, perhaps I should be using 0.7.0, and then wait until 0.9.0 is ready?

Thanks!
Dave

Michael Jerger

unread,
Jan 15, 2015, 12:42:29 PM1/15/15
to palle...@googlegroups.com
Hi,

you mentioned an apache httpd crate?
I'm just searching exactly for such a crate ... and near to the decision to write one by my own.
Are you interested in sharing your work?


Best Regards,
Michael

upgrad...@gmail.com

unread,
Jan 15, 2015, 12:48:42 PM1/15/15
to palle...@googlegroups.com
Hi Michael, yes, sure thing, it's very specific to how I like to configure virtual hosts on ubuntu but feel free to use it if it helps:


Here's an example of how I'm using it: 


What operating system dist and version do you need it for?

Michael Jerger

unread,
Jan 15, 2015, 1:03:06 PM1/15/15
to palle...@googlegroups.com
Hi Dave,

cool - thanks :-) I just reading your code :-))

I'm using:
pallet 0.8.0-RC.11
ubuntu 14.04

So distro configs may be quite similar.


Best regards,
Michael
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "pallet" group. To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/pallet-clj/AkaD7HcENMA/unsubscribe. To
> unsubscribe from this group and all its topics, send an email to
> pallet-clj+...@googlegroups.com. For more options, visit
> https://groups.google.com/d/optout.

Michael Jerger

unread,
Jan 16, 2015, 10:20:27 AM1/16/15
to palle...@googlegroups.com
Hi Dave,

did some first tests and looks very promising - the vhost-generator works
allready for me. Thanks for sharing your work :-)

I will write many tests (If you are curioous, I will commit my progress at
https://github.com/DomainDrivenArchitecture/httpd-crate).

For every extension I try to stay backward compatible. In order to keep the
merge option for the time I've finished my work, I promise to get again
compatible for every test you will provide to me :-)

Do you agree on this?


Best regards,
Michael

Am Donnerstag, 15. Januar 2015, 09:48:42 schrieb upgrad...@gmail.com:

upgrad...@gmail.com

unread,
Jan 16, 2015, 12:36:31 PM1/16/15
to palle...@googlegroups.com
Excellent, glad you are finding it useful. 

That sounds good. I'll keep track of your progress (I see you've already made some nice improvements already!) 

The next time I need to make any changes, I'll rebase on your latest and I'll also write tests to ensure I don't break any of your additions as well. 

Dave
Reply all
Reply to author
Forward
0 new messages