1
0

More than 3 years have passed since last update.

AWSにデプロイすると、いつも起こるエラー

Posted at

はじめに

現在作成中のアプリケーションはAWSにデプロイしているが、毎回、CSSがうまくいかず、rails assets:precompile RAILS_ENV=productionをすると、
"webpack" not foundと出て、挫けます。
きっとwebpackが見つからないとエラーを吐いているのだが、適切な解決方法が見つからず、
テキトーに操作してやり過ごしてしまってします。

今のところの解決方法

% yarn install --check-files
% bundle install
  • Unicornの再起動

この3つを試すと、どこかしらでうまくCSSのスタイルが適用されているみたいです。

最後に

読んだ人へ
なんの参考にもならなくてすみません。
自分が次、同じような目に遭った時、見返す用です。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0