{"id":25176289,"url":"https://github.com/redturtle/rt.commands","last_synced_at":"2025-10-24T10:31:38.688Z","repository":{"id":142748334,"uuid":"9749913","full_name":"RedTurtle/rt.commands","owner":"RedTurtle","description":"deployment commands for RT (mainly fabric)","archived":false,"fork":false,"pushed_at":"2015-12-02T14:49:57.000Z","size":23,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-04-09T15:16:15.352Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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.rst","changelog":"CHANGELOG.rst","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-04-29T14:27:46.000Z","updated_at":"2018-06-06T09:15:26.000Z","dependencies_parsed_at":"2023-03-14T22:01:12.766Z","dependency_job_id":null,"html_url":"https://github.com/RedTurtle/rt.commands","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Frt.commands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Frt.commands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Frt.commands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Frt.commands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedTurtle","download_url":"https://codeload.github.com/RedTurtle/rt.commands/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237951308,"owners_count":19392681,"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:49.739Z","updated_at":"2025-10-24T10:31:33.343Z","avatar_url":"https://github.com/RedTurtle.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"rt.commands\n===========\n\ndeployment commands for RT (mainly fabric scripts)\n\nYour fabfile\n------------\n\nTo use rt.commands import it in your fabfile and\nset some environment variables.\n\nFor example, you can start from this template::\n\n    # this is necessary to make the fabric commands available\n    from fabric.api import env\n    from rt.commands import *\n    from rt.commands.project import *\n    from rt.commands.buildout_components import *\n\n    # This is the main python version\n    env.python_version = '2.7'\n\n    # This is the buildout script to use\n    env.buildout_cfg = 'buildout.cfg'\n\n    # And some hosts\n    env.staging_user = 'plone'\n    env.staging_host = 'staging.example.com'\n    env.staging_dir = '/opt/www.demo.example.com'\n    env.production_user = 'plone'\n    env.production_host = 'example.com'\n    env.production_dir = '/opt/www.example.com'\n\n\nrt.commands\n-----------\n\nproduction:\n    Pushes into the env.hosts the production server\n\nstaging:\n    Pushes into the env.hosts the production server\n\nrt.commands.buildout_components\n-------------------------------\n\nsync_var:\n    Requires *staging* or *production* before.\n    Sync component's buildout var folder\n    It accepts the component parameter (default=plone)\n    You can pass .. to get the var at the buildout root\n\nrt.commands.components.plone\n----------------------------\n\nSpecial functions to sync plone.\nGiven this fabfile::\n\n    # -*- coding: utf-8 -*-\n    from fabric.api import env\n    from rt.commands import production, staging\n    from rt.commands.components.plone import sync_blobstorage, sync_filestorage\n\n    env.staging_user = 'redturtle'\n    env.staging_host = 'somehost.redturtle.it'\n    env.staging_dir = '/opt/somedir'\n\nYou can invoke::\n\n    fab staging sync_blobstorage\n    fab staging sync_filestorage\n\nIn order to have those folders synced\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredturtle%2Frt.commands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredturtle%2Frt.commands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredturtle%2Frt.commands/lists"}