{"id":13428009,"url":"https://github.com/mikamai/opsworks-dotenv","last_synced_at":"2025-08-21T08:32:14.511Z","repository":{"id":18268031,"uuid":"21429009","full_name":"mikamai/opsworks-dotenv","owner":"mikamai","description":null,"archived":false,"fork":false,"pushed_at":"2016-02-06T17:07:56.000Z","size":123,"stargazers_count":8,"open_issues_count":1,"forks_count":6,"subscribers_count":23,"default_branch":"master","last_synced_at":"2024-10-28T07:45:35.083Z","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":"avocado-framework/avocado-vt","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikamai.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-07-02T15:17:09.000Z","updated_at":"2020-04-25T13:25:08.000Z","dependencies_parsed_at":"2022-08-27T05:12:45.939Z","dependency_job_id":null,"html_url":"https://github.com/mikamai/opsworks-dotenv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikamai%2Fopsworks-dotenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikamai%2Fopsworks-dotenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikamai%2Fopsworks-dotenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikamai%2Fopsworks-dotenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikamai","download_url":"https://codeload.github.com/mikamai/opsworks-dotenv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230504336,"owners_count":18236572,"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-07-31T01:00:44.199Z","updated_at":"2024-12-19T21:29:32.759Z","avatar_url":"https://github.com/mikamai.png","language":"Ruby","funding_links":[],"categories":["Environment Variables","环境变量"],"sub_categories":["Omniauth"],"readme":"opsworks-dotenv\n===============\n\nConfigure the environment for you Rails application using OpsWorks, Chef and Dotenv\n\n\n### install\n\nAdd the Dotenv gem to your `Gemfile`\n\n```ruby\ngem 'dotenv-rails'\n```\n\nrun bundle\n\n```bash\n$ bundle\n```\n\nas soon as possible, load the environment through Dotenv\n\n\n```ruby\n# application.rb\nrequire File.expand_path('../boot', __FILE__)\nrequire 'dotenv'\nDotenv.load\n\n```\n\n\n### configure\n\nIn the OpsWorks stack dashboard click on stack Settings and supply your ENV configuration.\nFor example:\n\n```json\n{\n  \"deploy\":{\n    \"app_name\":{\n      \"symlink_before_migrate\":{\n        \".env\" : \".env\"\n      },\n      \"app_env\": {\n        \"YOUR_ENV_KEY\": \"KEY_VALUE\",\n        \"ANOTHER_ENV_KEY\": \"SECOND_VALUE\"\n      }\n    }\n  }\n}\n```\n\nThe `symlink_before_migrate` key just tells OpsWorks to create a link to `.env` file in `shared`\napplication folder into  `current`, so it can be picked up by Rails.\n\nYou can now deploy your app and enjoy the `ENV`\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikamai%2Fopsworks-dotenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikamai%2Fopsworks-dotenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikamai%2Fopsworks-dotenv/lists"}