{"id":15667968,"url":"https://github.com/naps62/capistrano3-env","last_synced_at":"2025-06-21T18:10:50.810Z","repository":{"id":14573488,"uuid":"17289638","full_name":"naps62/capistrano3-env","owner":"naps62","description":"Dotenv configuration management for Capistrano","archived":false,"fork":false,"pushed_at":"2016-07-20T21:30:38.000Z","size":8,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-27T06:47:39.625Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/naps62.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-28T15:08:15.000Z","updated_at":"2019-01-02T09:56:34.000Z","dependencies_parsed_at":"2022-07-21T18:49:03.022Z","dependency_job_id":null,"html_url":"https://github.com/naps62/capistrano3-env","commit_stats":null,"previous_names":["naps62/capistrano-env"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/naps62/capistrano3-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naps62%2Fcapistrano3-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naps62%2Fcapistrano3-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naps62%2Fcapistrano3-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naps62%2Fcapistrano3-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naps62","download_url":"https://codeload.github.com/naps62/capistrano3-env/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naps62%2Fcapistrano3-env/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261170433,"owners_count":23119515,"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":[],"created_at":"2024-10-03T14:06:01.623Z","updated_at":"2025-06-21T18:10:45.705Z","avatar_url":"https://github.com/naps62.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Capistrano 3 Env Management\n\nSmall Capistrano utility that allows easy management of app-specific\nenvironment variables (currently supporting [dotenv](https://github.com/bkeepers/dotenv) only)\n\n\n## Installation\n\nAdd the gem to your Gemfile\n\n    gem 'capistrano3-env', '~\u003e 0.1.0'\n\nRun `bundle` to update your `Gemfile.lock`\nAdd the following to your `Capfile`:\n\n    require 'capistrano/env'\n\n## Usage\n\nRake (which is used by Capistrano) has a not so pratical way of specifying task\narguments. To alleviate that issue, a small custom executable was made:\n\n    bundle exec cap-env [stage] [operation] [KEY] [VALUE]\n\nThe possible use cases are the following:\n\n    cap-env production get               # shows the current env file for\n    production\n    cap-env production set APP_ID 123456 # sets KEY=value\n    cap-env production get APP_ID        # shows the current value of KEY\n    cap-env production delete APP_ID     # deletes the given KEY\n\nAlternatively, you can use the underlying Capistrano tasks directly with `cap\nproduction TASK`, where `TASK` is one of the following:\n\n    env:get            # shows the current env file\n    env:get[KEY]       # KEY # shows the current value of KEY from the env file\n    env:set[KEY,value] # sets KEY=value in the env file\n    env:delete[KEY]    # deletes the given KEY\n\n\n## Configuration\n\nThe following configurations are available to you in config/deploy.rb (default\nvalues are shown here, no need to set them)\n\n    set :config_backend, :dotenv # currently this is the only supported backend\n    set :config_file,    '.env'  # you might want to use .env.production instead\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaps62%2Fcapistrano3-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaps62%2Fcapistrano3-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaps62%2Fcapistrano3-env/lists"}