4 ms·
I agree this is a good approach, but many companies use something like Heroku, which doesn't allow this kind of fine-grained control. Kind of scary how few peo
by endlessvoid94 13y ago
I agree this is a good approach, but many companies use something like Heroku, which doesn't allow this kind of fine-grained control.
Kind of scary how few people know how to set up nginx anymore.
- joevandyk 13y agoYou could setup nginx on a micro ec2 instance and have it proxy to heroku. You should also be able to setup a heroku nginx app that proxies to other heroku apps.
- artellectual 13y agoshameless self promotion Which is why I started doing these http://www.youtube.com/playlist?list=PLjQo0sojbbxUav7I746f0lT4apGX8-iON http://www.youtube.com/playlist?list=PLjQo0sojbbxUav7I746f0l... /shameless self promotion
- vinceguidry 13y agoI watched your Installing Ruby video to see how you did it, I strongly disagree with using rbenv in production. It adds on a completely unnecessary layer of complexity to the system and adds maintenance steps that are likely to be forgotten by the next fellow. I recommend using Ubuntu server and using the BrightBox PPA to install 2.1. Updates are an apt-get away, and adding PPAs is far easier to do with configuration management than managing rbenv or rvm. I use rbenv in development and it's a godsend. I keep it the hell away from production, though.
- rschmitty 13y agoDon't you need rbenv (or similar) in GP's case of migrating old app to new?
- vinceguidry 13y agoYou mean my case? Yeah, that and other complexities of the approach will probably keep me from using it. We're talking about a huge app with its own custom extension system with a ginormous amount of technical debt. Just keeping deployment sane would be a mess.
- rgraham 13y agoI've got to confirm the troubles of rbenv in production. I highly encourage alternative solutions and I'm furiously examining BrightBox.
- rurounijones 13y agoAre there any equivalents to the BrightBox for redhat based systems? I have looked around but found nothing at the moment
- vinceguidry 13y agoI looked too before I made the comment but I couldn't find anything. That's why I recommended Ubuntu. Getting OS support for brand new software packages is tough. It's not just the package itself that needs support but all the things that depend on it. If you have to use red hat, then you should probably either stick with 2.0 or just use rbenv until a proper package is released.
- nixme 13y agoHeroku definitely does. Even inside a single dyno. Switch to at least 2x-sized dynos and use nginx-buildpack (https://github.com/ryandotsmith/nginx-buildpack https://github.com/ryandotsmith/nginx-buildpack) with multi-buildpack (https://github.com/ddollar/heroku-buildpack-multi https://github.com/ddollar/heroku-buildpack-multi). You'll probably need to modify/fork the ruby buildpack to do asset compiles twice (if necessary) and check-in both apps into the same repo. And of course modify the nginx configuration.