tonycoco / heroku-buildpack-ember-cli

A Heroku Buildpack for Ember CLI Applications
MIT License
321 stars 121 forks source link

Use different nginx binary? #131

Closed danconnell closed 8 years ago

danconnell commented 8 years ago

I need to use nginx with perl or lua to perform a custom redirect (redirect URLs with uppercase to lowercase), so I need to swap out the nginx binary for a different one.

I've tried building my own nginx binary and uploading it and using that, but I don't think one compiled on OSX is going to work on Heroku since I keep getting parsing errors on a nginx.conf I can run locally.

What's the best way to do this? I can't seem to make any progress on it.

tonycoco commented 8 years ago

You can look into: https://github.com/tonycoco/heroku-buildpack-ember-cli/blob/master/bin/compile for how to get a binary compiled.

danconnell commented 8 years ago

Yes, I was looking there, and I tried using my own binary, but it didn't seem to run on Heroku. I was asking more if you know how the existing binary that is being used was compiled?

Ideally I can replicate that and just add in perl or lua.

tonycoco commented 8 years ago

Ahh. I remember I used: https://github.com/ryandotsmith/nginx-buildpack/blob/master/scripts/build_nginx.sh

danconnell commented 8 years ago

Thanks!