LoginSignup
1
0

More than 3 years have passed since last update.

Rails-CapistranoでRails assets manifest file not found.

Posted at

はじめに

下記環境で実施
* Ruby on Rails 6.0.3.6
* Capistrano 3.14

現象

CapistranoAWS EC2 へデプロイ実行時に、下記エラーが発生

% bundle exec cap production deploy BRANCH=master
XXX Exception while executing on host hoge-production: Rails assets manifest file not found. (SSHKit::Runner::ExecuteError)

対処方法

デプロイ先のEC2の、shared/public/assets ディレクトリに対して、
manifest.json sprockets-manifest.json をあらかじめ作成しておく。

% touch shared/public/assets/manifest.json
% touch shared/public/assets/sprockets-manifest.json
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