{"id":19298802,"url":"https://github.com/studiointeract/drupaldeploy","last_synced_at":"2025-04-22T09:32:44.910Z","repository":{"id":35247816,"uuid":"39507508","full_name":"studiointeract/drupaldeploy","owner":"studiointeract","description":"Drupal deployment tool using git and ssh","archived":false,"fork":false,"pushed_at":"2016-08-03T12:57:29.000Z","size":42,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T00:51:53.189Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/studiointeract.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":"2015-07-22T13:27:11.000Z","updated_at":"2021-04-22T11:57:17.000Z","dependencies_parsed_at":"2022-08-29T14:43:16.173Z","dependency_job_id":null,"html_url":"https://github.com/studiointeract/drupaldeploy","commit_stats":null,"previous_names":["studiointeract/drupal-git-deploy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studiointeract%2Fdrupaldeploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studiointeract%2Fdrupaldeploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studiointeract%2Fdrupaldeploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studiointeract%2Fdrupaldeploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/studiointeract","download_url":"https://codeload.github.com/studiointeract/drupaldeploy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223893121,"owners_count":17220834,"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-11-09T23:09:10.732Z","updated_at":"2024-11-09T23:09:11.243Z","avatar_url":"https://github.com/studiointeract.png","language":"JavaScript","readme":"# drupaldeploy\n\nA Drupal deployment tool using git and ssh\n\n## Installation\n\n```bash\nnpm install -g drupaldeploy\n```\n\n## Getting started\n\n### Init\n\nCreates a config.json and settings.php.\n\n```bash\ndrupaldeploy init\n```\n\nExample config.json:\n```json\n{\n  // Server authentication info.\n  \"servers\": [\n    {\n      \"host\": \"hostname\",\n      \"username\": \"root\"\n    }\n  ],\n\n  // The repository SSH clone url of your project.\n  \"repository\": \"git@github.org:studiointeract/drupal-git-deploy.git\",\n\n  // The branch you want to deploy.\n  \"branch\": \"master\",\n\n  // Location of web root in the repository.\n  \"web\": \"web\",\n\n  // Virtual Host DocumentRoot on the server.\n  \"documentRoot\": \"~/public_html\",\n\n  // Location of repository and files on the server (you need write permission).\n  \"installLocation\": \"/home/root\",\n\n  // Location of your Drupal settings\n  \"settings\": \"./settings.php\",\n\n  // Group for the user running Apache on the server.\n  \"group\": \"www-data\"\n}\n```\n\n\n### Setup\n\nSetup the server with your configuration and install git.\n\n```bash\ndrupaldeploy setup\n```\n\n### Deploy\n\nDeploy your Drupal project using git pull and ssh.\n\n```bash\ndrupaldeploy deploy\n```\n\n\u003e Notice! You need to setup ssh-agent (see below) for this to work, and have permissions to pull from your repository using your own ssh key.\n\n#### SSH keys with passphrase (or ssh-agent support)\n\n\u003e This only tested with Mac/Linux/Windows 10\n\nWith the help of `ssh-agent`, `drupaldeploy` can use SSH keys encrypted with a\npassphrase.\n\nHere's the process:\n\n* First remove your `pem` field from the `config.json`. So, your `config.json` only has the username and host only.\n* Then start a ssh agent with `eval $(ssh-agent)` or ``eval `ssh-agent.exe` `` on Windows 10.\n* Then add your ssh key with `ssh-add \u003cpath-to-key\u003e`, i.e. `ssh-add ~/.ssh/id_rsa`.\n* Then you'll asked to enter the passphrase to the key if you're using one.\n* After that simply invoke `drupaldeploy` commands and they'll just work\n* Once you've deployed your app kill the ssh agent with `ssh-agent -k`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstudiointeract%2Fdrupaldeploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstudiointeract%2Fdrupaldeploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstudiointeract%2Fdrupaldeploy/lists"}