Ignore my advice on order of location blocks; nginx has a specific order of 
precedence and order doesn't matter. 

See location description here: http://wiki.nginx.org/HttpCoreModule

I would rewrite your asset location block like this:

location ^~ /assets/ { # matches any query beginning with /assets/ and halts 
searching, # so regular expressions will not be checked.

On Aug 20, 2012, at 10:57 PM, blueHandTalking <[email protected]> wrote:

> Here is gist of nginx.conf and sites-enabled/default
> 
>   git://gist.github.com/3412424.git
> 
> On Aug 20, 9:53 pm, Donovan Bray <[email protected]> wrote:
>> Need to know what your nginx config looks like.
>> 
>> On Aug 20, 2012, at 8:12 PM, blueHandTalking <[email protected]> wrote:
>> 
>>> I am deploying a site that is using nginx and capistrano and git.
>> 
>>> My deploy.rb uses a git repository on a remote site that also has my
>>> web server.
>> 
>>> The site is deployed correctly,  excepting nginx not serving static
>>> assets.
>> 
>>> However any changes I make that are pushed to the remote git are not
>>> propagated
>>> on my site.
>> 
>>> Here is a gist of the deploy.rb that I am using:
>> 
>>>   git://gist.github.com/3411133.git
>> 
>>> Any thoughts or suggestions appreciated.
>> 
>>> This is my first attempt at using nginx, unicorn, git, and capistrano
>>> to deploy a site.
>> 
>>> Thanks!
>> 
>>>    Jet
>> 
>>> --
>>> * You received this message because you are subscribed to the Google Groups 
>>> "Capistrano" group.
>>> * To post to this group, send email to [email protected]
>>> * To unsubscribe from this group, send email to 
>>> [email protected] For more options, visit this group 
>>> athttp://groups.google.com/group/capistrano?hl=en
> 
> -- 
> * You received this message because you are subscribed to the Google Groups 
> "Capistrano" group.
> * To post to this group, send email to [email protected]
> * To unsubscribe from this group, send email to 
> [email protected] For more options, visit this group at 
> http://groups.google.com/group/capistrano?hl=en

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to