How to solve Deployment Failure-`assets:precompile`
I was trying to deploy rails 6 app on ec2 server using capistrano when precompile failure lead to whole deploymentt failure. I had to uninstall cmdtest and install yarn

Issue: Deployment Failure: assets:precompile
deploy:assets:precompile
01 $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile
01 Usage: yarn [options]
01
01 yarn: error: no such option: --no-progressI was trying to deploy rails 6 app on ec2 server using capistrano when precompile failure lead to whole deploymentt failure. I was facing this issue only in server so I started digging what I was doing different on server.
Turns out,
On server my yarn command came from cmdtest.
So I uninstalled cmdtest and installed yarn.The steps I followed is as below.
Configure the repository:
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.listInstall Yarn:
sudo apt update && sudo apt install yarn
Then I ran the cap:production:deploy and it worked.
Did you also face similar issue while deploying rails apps to ubuntu with webpack enabled? Did this help? Please let me know your findings in the comment section below.
Keep reading

Fix mise GitHub Rate Limit with a Token
mise makes unauthenticated GitHub API calls by default. When you hit the rate limit installing tools, a personal access token (no scopes required) fixes it permanently.

How to Sort an Array of Objects in JavaScript
How to Sort an Array of Objects in JavaScript

Ways to increase productivity while working from home
It could be quite challenging to work from home without serious commitment and right set of skills. Here are some effective tips that can help you.

What did you take away?
Thoughts, pushback, or a story of your own? Drop a reply below — I read every one.
Comments are powered by Disqus. By posting you agree to theirterms.