Skip to content

just api - Could not find the file /rails/public/assets/. in container demo_api-web-assets #1211

Answered by jrroshan
fabriciocarboni asked this question in Q&A
Discussion options

You must be logged in to vote

Trying kamal for the first time and it seems not finding assets dir.

ERROR (SSHKit::Command::Failed): Exception while executing on host 198.199.68.149: mkdir exit status: 1
mkdir stdout: 10d593062d764926b0476e218e7098f995fee25c28ee948761f24d91ee9d9285
mkdir stderr: Error response from daemon: Could not find the file /rails/public/assets/. in container demo_api-web-assets

To overcome this I had to fake create an asset directory in public/assets/fake.txt 🤣 Is it possible to skip this in kamal as this app is just an api?

# hitting 404 on in-flight requests. Combines all files from new and old
# version inside the asset_path.
asset_path: /rails/public/assets```

you can comment out this in…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fabriciocarboni
Comment options

Answer selected by fabriciocarboni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants