npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

drupaldeploy

v0.4.14

Published

Drupal deployment tool using git and ssh

Downloads

63

Readme

drupaldeploy

A Drupal deployment tool using git and ssh

Installation

npm install -g drupaldeploy

Getting started

Init

Creates a config.json and settings.php.

drupaldeploy init

Example config.json:

{
  // Server authentication info.
  "servers": [
    {
      "host": "hostname",
      "username": "root"
    }
  ],

  // The repository SSH clone url of your project.
  "repository": "[email protected]:studiointeract/drupal-git-deploy.git",

  // The branch you want to deploy.
  "branch": "master",

  // Location of web root in the repository.
  "web": "web",

  // Virtual Host DocumentRoot on the server.
  "documentRoot": "~/public_html",

  // Location of repository and files on the server (you need write permission).
  "installLocation": "/home/root",

  // Location of your Drupal settings
  "settings": "./settings.php",

  // Group for the user running Apache on the server.
  "group": "www-data"
}

Setup

Setup the server with your configuration and install git.

drupaldeploy setup

Deploy

Deploy your Drupal project using git pull and ssh.

drupaldeploy deploy

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.

SSH keys with passphrase (or ssh-agent support)

This only tested with Mac/Linux/Windows 10

With the help of ssh-agent, drupaldeploy can use SSH keys encrypted with a passphrase.

Here's the process:

  • First remove your pem field from the config.json. So, your config.json only has the username and host only.
  • Then start a ssh agent with eval $(ssh-agent) or eval `ssh-agent.exe` on Windows 10.
  • Then add your ssh key with ssh-add <path-to-key>, i.e. ssh-add ~/.ssh/id_rsa.
  • Then you'll asked to enter the passphrase to the key if you're using one.
  • After that simply invoke drupaldeploy commands and they'll just work
  • Once you've deployed your app kill the ssh agent with ssh-agent -k