{"id":25176359,"url":"https://github.com/redturtle/deployments.buildout.production","last_synced_at":"2025-07-20T14:04:17.368Z","repository":{"id":7592454,"uuid":"8948931","full_name":"RedTurtle/deployments.buildout.production","owner":"RedTurtle","description":"Buildout production deployments","archived":false,"fork":false,"pushed_at":"2022-12-27T15:37:40.000Z","size":136,"stargazers_count":1,"open_issues_count":2,"forks_count":2,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-04-04T01:41:24.848Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/RedTurtle.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":"2013-03-22T09:42:36.000Z","updated_at":"2021-12-23T10:39:02.000Z","dependencies_parsed_at":"2023-01-11T17:12:23.044Z","dependency_job_id":null,"html_url":"https://github.com/RedTurtle/deployments.buildout.production","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RedTurtle/deployments.buildout.production","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Fdeployments.buildout.production","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Fdeployments.buildout.production/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Fdeployments.buildout.production/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Fdeployments.buildout.production/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedTurtle","download_url":"https://codeload.github.com/RedTurtle/deployments.buildout.production/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Fdeployments.buildout.production/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266135685,"owners_count":23881803,"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":"2025-02-09T13:16:58.465Z","updated_at":"2025-07-20T14:04:17.335Z","avatar_url":"https://github.com/RedTurtle.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/RedTurtle/deployments.buildout.production.png?branch=master)](https://travis-ci.org/RedTurtle/deployments.buildout.production)\ndeployments.buildout.production\n===============================\n\n\n# Redturtle deployment production \n  \nManage staging or production environments using pm2 (default) or supervisor as control system.\n\n## Basic setup example\n```\ngit clone git@github.com:RedTurtle/deployments.buildout.production.git\ncd deployments.buildout.production\nvirtualenv --python=/usr/local/bin/python3.7 .\n. bin/activate\npip install -r requirements.txt\nln -sf profiles/staging.cfg buildout.cfg\nbuildout -N\n```\n\n## pm2\n\nIf pm2 has been set as manager the following files are generated:\n\n* ecosystem.config.js\n* bin/pm2_restart_plone.sh\n\nA crontab is also installed to run the pm2_restart_plone.sh script.\n\n\n## supervisor\n\nIf supervisor has been set as manager the following file is generated:\n\n* bin/supervisor_restart_plone.sh\n\nA crontab is also installed to run the supervisor_restart_plone.sh script.\n\n\n\nHow to make a copy of this buildout\n-----------------------------------\nLaunch those lines\n```bash\nwget -O master.zip https://github.com/RedTurtle/deployments.buildout.production/archive/master.zip\nunzip master.zip\nrm master.zip\ncd deployments.buildout.production-master\n```\n\nThis will give you, in the `bin` folder a bunch of commands to control your\ndeployment:\n- supervisord\n- supervisorctl\n- start (alias for supervisord)\n- status (alias for supervisorctl status)\n- restart (alias for supervisorctl shutdown \u0026\u0026 wait some time \u0026\u0026 supervisord)\n- stop (alias for supervisorctl shutdown)\n- graceful (alias for supervisorctl restart all)\n\nOptionally you can add a `fabric` part. It will install a local fab script\n- fab\n\nIn addition it will install in the `etc` folder an init script for debian like\nsystems.\nThis script can be copied with a descriptive name in the `/etc/init.d` system\ndirectory and activated for autostart, e.g.::\n```\ncp etc/initscript /etc/init.d/deployment.buildout.production\nupdate-rc.d deployment.buildout.production defaults\n```\nCheck the file for more detailed instructions.\n\nThe configuration for supervisor can be checked in the supervisor part\nfolder (`parts/supervisor/supervisord.conf`)\n\nConfiguration\n-------------\n\nTo correctly prepare the initscript change the `name` parameter\nin the `[initscript]` session:\n```config\n[initscript]\nname = www.example.com\n```\nThe default is to take buildout folder name.\n\nIf you want supervisord to run as a different user,\nmodify `supervisord-user` in the `[supervisor]` section, e.g.:\n\n```config\n[supervisor]\nsupervisord-user = plone\n```\n\nThe default is to take the user launching buildout.\n\nConnect only some components\n----------------------------\nTo connect only some components\nyou should not use `make quickstart`,\nbut after getting a copy of this buildout\nyou can run:\n\n```bash\nmake get_$(COMPONENT)\n```\nwhere `$(COMPONENT)` is one of the following:\n * haproxy\n * plone\n * varnish\n\nThis will download the `$(COMPONENT)` buildout\nto the `./components/$(COMPONENT)` directory.\n\nTo get all the known components just launch:\n```bash\nmake get_all\n```\n\nIf you want to remove some components\njust delete the relative folder\nin the `components` directory, e.g::\n```bash\nrm -rf components/varnish\n```\n\nRemember to comment/uncomment the wanted supervisor programs!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredturtle%2Fdeployments.buildout.production","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredturtle%2Fdeployments.buildout.production","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredturtle%2Fdeployments.buildout.production/lists"}