{"id":15353751,"url":"https://github.com/westonganger/capistrano-precompile-chooser","last_synced_at":"2025-04-15T05:57:13.373Z","repository":{"id":62555065,"uuid":"288913578","full_name":"westonganger/capistrano-precompile-chooser","owner":"westonganger","description":"Capistrano plugin to precompile your Rails assets locally, remotely, or not at all provided with a very convenient default terminal prompt.","archived":false,"fork":false,"pushed_at":"2024-12-03T06:08:36.000Z","size":21,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T05:57:06.761Z","etag":null,"topics":["capistrano","capistrano-deployment","capistrano-plugin","rails","rails-assets","rails-deployment","rails-precompile"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/westonganger.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-20T05:20:49.000Z","updated_at":"2025-01-12T18:33:38.000Z","dependencies_parsed_at":"2024-10-16T02:40:44.256Z","dependency_job_id":null,"html_url":"https://github.com/westonganger/capistrano-precompile-chooser","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"665840c19b4e07fa26ecc6fcfcf29bbadcde4520"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Fcapistrano-precompile-chooser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Fcapistrano-precompile-chooser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Fcapistrano-precompile-chooser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Fcapistrano-precompile-chooser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/westonganger","download_url":"https://codeload.github.com/westonganger/capistrano-precompile-chooser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249016321,"owners_count":21198832,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["capistrano","capistrano-deployment","capistrano-plugin","rails","rails-assets","rails-deployment","rails-precompile"],"created_at":"2024-10-01T12:15:06.337Z","updated_at":"2025-04-15T05:57:13.355Z","avatar_url":"https://github.com/westonganger.png","language":"Ruby","funding_links":["https://ko-fi.com/A5071NK'"],"categories":[],"sub_categories":[],"readme":"# Capistrano Precompile Chooser\n\n\u003ca href=\"https://badge.fury.io/rb/capistrano-precompile-chooser\" target=\"_blank\"\u003e\u003cimg height=\"21\" style='border:0px;height:21px;' border='0' src=\"https://badge.fury.io/rb/capistrano-precompile-chooser.svg\" alt=\"Gem Version\"\u003e\u003c/a\u003e\n\u003ca href='https://rubygems.org/gems/capistrano-precompile-chooser' target='_blank'\u003e\u003cimg height='21' style='border:0px;height:21px;' src='https://img.shields.io/gem/dt/capistrano-precompile-chooser?color=brightgreen\u0026label=Rubygems%20Downloads' border='0' alt='RubyGems Downloads' /\u003e\u003c/a\u003e\n\u003ca href='https://ko-fi.com/A5071NK' target='_blank'\u003e\u003cimg height='22' style='border:0px;height:22px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=a' border='0' alt='Buy Me a Coffee'\u003e\u003c/a\u003e\n\nCapistrano plugin to precompile your Rails assets locally, remotely, or not at all provided with a very convenient default terminal prompt.\n\nBy Default, on every deploy this plugin will prompt you on whether you want to precompile your assets locally, remotely, or not at all. Alternatively you can set some variable for fully automated deploys.\n\nWorks with both Sprockets and Propshaft.\n\n```\n$ cap production deploy\n\nHow do you want to compile assets? (local/remote/skip)\nskip\n```\n\n## Precompile Modes\n\n- `local` - Local Precompilation Mode (Improves Memory/Load Spikes on Server during Deploys)\n- `remote` - Remote Precompilation Mode (Rails Default)\n- `skip` - No Precompilation (Speeds up deployments with unchanged assets)\n\n## Installation\n\n```ruby\n# Gemfile\n\ngroup :development do\n  gem \"capistrano-precompile-chooser\"\nend\n```\n\n```ruby\n# Capfile\n\n# require 'capistrano/rails' ### Comment Out or Remove this line\nrequire 'capistrano/precompile_chooser'\n```\n\nIf you want to be able to safely use the `skip` option you must add `public/assets` to your capistrano `:shared_dirs` variable\n\n```ruby\n# config/deploy.rb\n\nset :linked_dirs, %w{ \u003cother-dirs\u003e public/assets }\n```\n\n## Usage\n\nNow when running a deployment:\n\n```\n$ cap production deploy\n\nHow do you want to compile assets? (local/remote/skip)\nskip\n```\n\nYou can also use the `$PRECOMPILE` environment variable\n\n```bash\n$ PRECOMPILE_MODE=\"local\" cap production deploy\n```\n\nOr for fully automated deploys\n\n```ruby\n# Capfile\n\nENV['PRECOMPILE_MODE'] = 'local'\nrequire 'capistrano/precompile_chooser'\n```\n\n## Configuration Options,\n\n```ruby\n### For Local Precompile Only\nset :assets_dir,   \"public/assets\"\nset :packs_dir,    \"public/packs\"\nset :rsync_cmd,    \"rsync -av --delete\"\nset :assets_role,  \"web\"\n```\n\n# Credits\n\nCreated \u0026 Maintained by [Weston Ganger](https://westonganger.com) - [@westonganger](https://github.com/westonganger)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwestonganger%2Fcapistrano-precompile-chooser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwestonganger%2Fcapistrano-precompile-chooser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwestonganger%2Fcapistrano-precompile-chooser/lists"}