> On Mar 6, 2019, at 10:29 AM, Walter Lee Davis <
wa...@wdstudio.com> wrote:
>
>>
>> On Mar 6, 2019, at 10:16 AM, Colin Law <
cla...@gmail.com> wrote:
>>
>> On Wed, 6 Mar 2019 at 14:47, Walter Lee Davis <
wa...@wdstudio.com> wrote:
>>>
>>>
>>>> On Mar 6, 2019, at 9:27 AM, Walter Lee Davis <
wa...@wdstudio.com> wrote:
>>>>
>>>> The asset pipeline needs a JavaScript interpreter to work correctly on the server. I usually install whatever version of Node.js is available in a package manager. Alternatively, you can use the gem `therubyracer` to do the same thing. If you have that dependency filled, then I'm fresh out of ideas.
>>
>> Thanks for the suggestions Walter
>> I have checked nodejs is installed (node -v shows 10.x)
>>
>>>
>>> Make sure that this works, on the server:
>>>
>>> RAILS_ENV=production rake assets:precompile
>>
>> Yes it does work, it outputs nothing, as expected. The code has been
>> checked out of the git repo, which doesn't include the public/assets
>> folder and the compiled assets are there ok.
>> I just realised that I was wrong about the css, that isn't found either.
>>
>> One thing that confuses me, in the nginx log I see entries like
>> GET /assets/red_pin.png HTTP/1.1" 404 457 ...
>> Should the url not be the full name including the digest?
>
> Yes, at the NGINX level, the request should be for the actual file path. In the Rails app, there would be a helper call like asset_url('red_pin.png'), which would generate the full path including the fingerprint.
I just realized this answer wasn't entirely clear. When I said the "actual file path", I meant including the fingerprint.
Another idea: have a hunt in the rake -T output for assets things you can do. One of them is purge or flush or something like that. Really get in there and force it to re-do everything.
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to