basecamp / kamal

Deploy web apps anywhere.
https://kamal-deploy.org
MIT License
10.51k stars 398 forks source link

Asset is not present in Pipeline #852

Closed Talha345 closed 1 month ago

Talha345 commented 3 months ago

There is a issue whenever I add a new image to the asset pipeline and deploy via Kamal, the server gives a 500 with the message asset_name is not present in the asset pipeline. Redeploying the same build the second time fixes the issue.

Rails version: 7.1.3 Ruby version: 3.2.2 Kamal version: 1.3

K4sku commented 3 months ago

Do you have asset_path set in deploy.yml?

Talha345 commented 3 months ago

Do you have asset_path set in deploy.yml?

Yes, I have the following in my deploy.yml:

asset_path: /rails/public/assets

K4sku commented 3 months ago

If you are using sprockets see this issue https://github.com/basecamp/kamal/issues/626

morgoth commented 2 months ago

@Talha345 does it solve your issue? Can it be closed?

Talha345 commented 2 months ago

Yes I think it is fixed. This can be closed.