kamal icon indicating copy to clipboard operation
kamal copied to clipboard

Asset is not present in Pipeline

Open Talha345 opened this issue 1 year ago • 5 comments

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

Talha345 avatar Jun 21 '24 11:06 Talha345

Do you have asset_path set in deploy.yml?

K4sku avatar Jun 21 '24 11:06 K4sku

Do you have asset_path set in deploy.yml?

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

asset_path: /rails/public/assets

Talha345 avatar Jun 21 '24 11:06 Talha345

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

K4sku avatar Jun 21 '24 13:06 K4sku

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

morgoth avatar Jul 26 '24 13:07 morgoth

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

Talha345 avatar Jul 26 '24 13:07 Talha345