{"id":20375335,"url":"https://github.com/cba85/dokku-env-converter","last_synced_at":"2026-04-20T07:01:45.253Z","repository":{"id":71449025,"uuid":"143460027","full_name":"cba85/dokku-env-converter","owner":"cba85","description":"A bash script to convert PHP .env file to inlined variables for Dokku.","archived":false,"fork":false,"pushed_at":"2018-08-10T12:41:43.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T21:44:58.933Z","etag":null,"topics":["dokku","environment-variables","php"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/cba85.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-03T18:20:58.000Z","updated_at":"2021-11-28T13:23:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"e5d683e9-4071-4978-9398-2dc09a67191e","html_url":"https://github.com/cba85/dokku-env-converter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cba85/dokku-env-converter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Fdokku-env-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Fdokku-env-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Fdokku-env-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Fdokku-env-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cba85","download_url":"https://codeload.github.com/cba85/dokku-env-converter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Fdokku-env-converter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32036799,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["dokku","environment-variables","php"],"created_at":"2024-11-15T01:29:57.201Z","updated_at":"2026-04-20T07:01:45.212Z","avatar_url":"https://github.com/cba85.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dokku Env Converter\n\nA simple bash script to convert PHP `.env` file from package [vlucas/phpdotenv](https://github.com/vlucas/phpdotenv) to inlined variables for Dokku.\n\nBasically, this script removes the comments (`#`) of the `.env` file, inlines it and adds `dokku config:set` to create the environement variables in Dokku.\n\n## Installation\n\n### Install globally\n\n1. Add execution rights to the script:\n    ```bash\n    $ chmod +x dokku-env-converter.sh\n    ```\n2. Create an alias in your `.bash_profile` or in your `.zshrc` file:\n    ```bash\n    alias dokku-env-converter='~/path/to/dokku-env-converter/dokku-env-converter.sh'\n    ```\n\n## Example\n\n### Go to your PHP repository that contains the `.env` file:\n\n`.env` file example:\n\n```\nDB_CONNECTION=mysql\nDB_HOST=127.0.0.1\nDB_PORT=3306\nDB_DATABASE=database_name\nDB_USERNAME=root\nDB_PASSWORD=root\n```\n\n### Launch script:\n\n```bash\n$ dokku-env-converter app_name\n```\n\n### Results:\n\n```bash\ndokku config:set app_name DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=database_name DB_USERNAME=root DB_PASSWORD=root\n```\n\n### Add environment variables in Dokku:\n\nThen, just copy and paste the results in your Dokku server.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcba85%2Fdokku-env-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcba85%2Fdokku-env-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcba85%2Fdokku-env-converter/lists"}