Skip to content

Missing tailwind.css in production #114

Closed
@wiiikiii

Description

@wiiikiii

I am running freebsd in production.

Locally I am preparing for production

bundle exec rake assets:precompile RAILS_ENV=production

the following file has been created

I, [2021-12-23T15:20:13.950831 #72321] INFO -- : Writing dev.site/public/assets/tailwind-9a9d4d350c33eade01e355193e6b277f587e92f4a1bd036122cd72af203f15a1.css
I, [2021-12-23T15:20:13.951302 #72321] INFO -- : Writing dev.site/public/assets/tailwind-9a9d4d350c33eade01e355193e6b277f587e92f4a1bd036122cd72af203f15a1.css.gz

and sync the all file to the server.

rsync -aPv public/assets public/packs server.name:/home/www/site/public/

after touch tmp/restart.txt in production I get the error in production log.

ActionView::Template::Error (The asset "tailwind.css" is not present in the asset pipeline.
):
 5:     <meta name="viewport" content="width=device-width,initial-scale=1"> 
 6:     <%= csrf_meta_tags %>
 7:     <%= csp_meta_tag %>
 8:     <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
 9:
10:     <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
11:     <%= javascript_importmap_tags %>

app/views/layouts/application.html.erb:8

The tailwind.css exists in app/assets/builds/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions