{"id":22753140,"url":"https://github.com/shockwavemk/magento2-module-console-staging","last_synced_at":"2025-04-14T15:14:40.741Z","repository":{"id":57049722,"uuid":"52946781","full_name":"shockwavemk/magento2-module-console-staging","owner":"shockwavemk","description":null,"archived":false,"fork":false,"pushed_at":"2016-03-02T11:35:46.000Z","size":92,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T15:14:30.971Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shockwavemk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-02T08:30:16.000Z","updated_at":"2018-07-03T08:18:29.000Z","dependencies_parsed_at":"2022-08-23T19:10:22.075Z","dependency_job_id":null,"html_url":"https://github.com/shockwavemk/magento2-module-console-staging","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shockwavemk%2Fmagento2-module-console-staging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shockwavemk%2Fmagento2-module-console-staging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shockwavemk%2Fmagento2-module-console-staging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shockwavemk%2Fmagento2-module-console-staging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shockwavemk","download_url":"https://codeload.github.com/shockwavemk/magento2-module-console-staging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248904637,"owners_count":21180835,"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-12-11T06:09:07.580Z","updated_at":"2025-04-14T15:14:40.704Z","avatar_url":"https://github.com/shockwavemk.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Magento2 Command-Line Tools For Staging Support\n\nA Magento2 setup for a well structured development process needs the setup of development, integration and production environments.\n\nWhile staging the database from production server to integration with help of backup console command (bin/magento setup:backup) minor repeating problems occur:\nSome settings defined in database have to be changed on staging, for example 'web/secure/base_url'.\n\nIn order to avoid this repeating task, it should be possible to define different config files overriding this settings in database.\nThat is the purpose of this module.\n\n![](./files/command-details.png)\n\n# Installation\n\nAdd the module to your composer file.\n\n```json\n{\n  \"require\": {    \n    \"shockwavemk/magento2-module-console-staging\": \"dev-master\"\n  }\n}\n\n```\n\nInstall the module with composer\n\n```bash\n\n    composer update\n\n```\n\nOn succeed, install the module via bin/magento console:\n\n![](./files/module-status.png)\n\n```bash\n\n    bin/magento cache:clean\n    \n    bin/magento module:install Shockwavemk_Staging\n    \n    bin/magento setup:upgrade\n\n```\n\nYou should be able to see a new command in bin/magento console:\n\n![](./files/new-command.png)\n\n\n# Usage\n\n## Create configuration file\n\nCreate a configuration php file in your project directory (or a subfolder or elsewhere on your server)\n\n```php\n\n    \u003c?php\n    return array (\n        'default' =\u003e\n            array(\n                '0' =\u003e array(\n                    'web/unsecure/base_url' =\u003e 'http://dev.example.com',\n                    'web/secure/base_url' =\u003e 'https://dev.example.com'\n                )\n            )\n        );\n        \n```\n\n## Execute command\n\n### set\n\n```bash\n\n    \u003c project-path \u003e/bin/magento staging:config:set ./db-config.php\n    \n```\n\n## Result in database\n\n![](./files/result-in-database.png)\n\n\n# Save current db config to file (export)\n\n```bash\n\n    \u003c project-path \u003e/bin/magento staging:config:get ./db-config.php\n    \n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshockwavemk%2Fmagento2-module-console-staging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshockwavemk%2Fmagento2-module-console-staging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshockwavemk%2Fmagento2-module-console-staging/lists"}