{"id":26057980,"url":"https://github.com/onix-systems/environment-design","last_synced_at":"2026-05-03T22:31:14.960Z","repository":{"id":146575146,"uuid":"127247067","full_name":"Onix-Systems/environment-design","owner":"Onix-Systems","description":"This example describes how we can combine development and production","archived":false,"fork":false,"pushed_at":"2018-04-19T06:30:40.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-16T08:06:10.571Z","etag":null,"topics":["ansible","ansible-playbook","ansible-roles","apache","development-environment","htaccess","php"],"latest_commit_sha":null,"homepage":"https://onix-systems.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Onix-Systems.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-03-29T06:29:33.000Z","updated_at":"2018-04-19T06:30:41.000Z","dependencies_parsed_at":"2023-07-15T03:15:18.341Z","dependency_job_id":null,"html_url":"https://github.com/Onix-Systems/environment-design","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Onix-Systems/environment-design","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Onix-Systems%2Fenvironment-design","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Onix-Systems%2Fenvironment-design/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Onix-Systems%2Fenvironment-design/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Onix-Systems%2Fenvironment-design/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Onix-Systems","download_url":"https://codeload.github.com/Onix-Systems/environment-design/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Onix-Systems%2Fenvironment-design/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32587816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ansible","ansible-playbook","ansible-roles","apache","development-environment","htaccess","php"],"created_at":"2025-03-08T11:59:52.079Z","updated_at":"2026-05-03T22:31:14.955Z","avatar_url":"https://github.com/Onix-Systems.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Design application's environment\n\nThis is the example how can we combine development environment with future\nproduction.\n\nBe sure that customer uses correct environment settings.\n\n---\n\n#### Purpose\n\nKeep production environment very close with development.\nIt is important to ensure about result on customer side.\n\n---\n\n#### Requirements\n\n1. Oracle VirtulBox [https://www.virtualbox.org](https://www.virtualbox.org)\n1. Hashicorp Vagrant [https://www.vagrantup.com/](https://www.vagrantup.com/)\n1. Desire is the most important. :)\n\nAll above described tools can be deployed on different OS. Try find yours.\n\nPS: To setup production environment on prepared server, be sure, that it is\nprovided server with OS `Ubuntu 16.04 (xenial)`. This OS distribution is used for development\nenvironment.\n\n---\n\n#### Usage\n\nBy default development environment will be deployed. Development environment use\ncurrent folder as source for application.\n\nTo launch development environment use next command:\n\n```\n$ vagrant up\n```\n\nAfter launching virtual machine **demo application** will be accessible by url:\n[http://localhost:8080](http://localhost:8080)\n\nTo reconfigure virtual machine in production mode, use next command:\n```\n$ ./x-production.setup.sh\n```\n\nTo reconfigure virtual machine in development mode, use next command:\n```\n$ ./x-vagrant.setup.sh\n```\n\n**PS:** These additional command ^^^ can be executed only from Linux terminal.\nFor Windows machines read script content and try execute command through `vagrant`.\n\n---\n\n#### Project structure\n\n```\n.\n├── application (application source code)\n├── provision (ansible-playbook with roles for provision target environment)\n├── Vagrantfile\n├── x-production.setup.sh\n└── x-vagrant.setup.sh\n```\n\n---\n\n#### Differences between development and production environment\n\nIn development mode are next things:\n\n1. Warning and error messages will be printed when such be detected.\n1. Source code in development environment is mounted inside the virtual machine.\n\nIn producition mode are next things:\n\n1. Errors are hide and when it is possible web server shows pretty message\ninstead of standard server messages.\n1. Source code is copied inside the environment to local folder. Is used for\nremote source delivering.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonix-systems%2Fenvironment-design","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonix-systems%2Fenvironment-design","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonix-systems%2Fenvironment-design/lists"}