capistrano / capistrano/rails

Deploying a webpacker project without sprockets fails

Open
#235 6 comments 0 reactions 0 assignees View on GitHub
you can help!
Dominant language
Ruby
Stars
901
Forks
262
PR merge metrics
No merged PRs in 30d

Description

### Steps to reproduce
Deploy a project with assets built with Webpacker and without sprockets generating anything.

### Expected behavior
Deploy succeeds

### Actual behavior
Deploy fails because manifest files are missing
```
DEBUG [a53efae3] cannot access '/home/deploy/appname/releases/20190911225157/public/assets/.sprockets-manifest*'
DEBUG [a53efae3] : No such file or directory
DEBUG [769a050c] cannot access '/home/deploy/appname/releases/20190911225157/public/assets/manifest*.*'
DEBUG [769a050c] : No such file or directory
```

### Hot-Fix
Adding a line to **deploy.rb**
`Rake::Task["deploy:assets:backup_manifest"].clear_actions`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with deploy.rb and the deploy:assets:backup_manifest task, then reproduce a deployment using Webpacker without Sprockets. Check how missing public/assets manifest files are handled; done means the deployment succeeds without requiring Sprockets-generated manifests and the existing hot-fix is no longer needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
rails, ruby
Domain
devops, release
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.