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

dokku-deploy

v1.0.3

Published

A deployment tool for dokku.

Downloads

4

Readme

Dokku Deploy CLI

A deployment tool for dokku.

Installation

npm install -g dokku-deploy

Usage

By default dokku-deploy enters interactive mode:

$ dokku-deploy
Dokku Deploy CLI - 0.0.1
Project: my-node-project - 1.2.3

? What would you like to do?
❯ Bump, Tag & Deploy
  Bump & Tag
  Deploy Tag

You can also specify arguments to automate it with scripts:

$ dokku-deploy -h

  Usage: dokku-deploy [options]


  Options:

    -V, --version                      output the version number
    -b, --bump-tag-deploy [bump-type]  Bump the version, create tag and deploy [patch])
    -t, --bump-tag [bump-type]         Bump the version and create a tag [patch])
    -d, --deploy <tag>                 Deploy an existing tag
    --setup                            Run setup on current the git repository
    -h, --help                         output usage information

Setup

dokku-deploy relies on git remote dokku to be setup before using the tool. If the remote dokku, does not exist it will automatically run setup. This is required in order to use the CLI tool.

$ dokku-deploy
Dokku Deploy CLI - 0.0.1
Project: my-node-project - 1.2.3

Looks like this repo isn't setup to deploy to dokku.
? Would you like to set it up now? Yes
? Enter your dokku URL (e.g ssh://[email protected]/chat-challenge): ssh://[email protected]/chat-challenge
Setting up dokku remote URL...
done! You can now re-run your command

Bump Tag & Deploy

Running bump, tag and deploy will prompt for the type of bump to perform before tagging and deploying it to your dokku server.

$ dokku-deploy
Dokku Deploy CLI - 0.0.1
Project: my-node-project - 1.2.3

? What would you like to do? Bump, Tag & Deploy
? Select the type of bump to perform: Patch
Bumping to the next patch version...
pushing to remote...
Bumped and tagged version 1.2.4
Deploying tag v1.2.4...
-----> Cleaning up...
-----> Building my-project from herokuish...
-----> Adding BUILD_ENV to build environment...
-----> Node.js app detected
...

Tag v1.2.4 deployed!

This command can also be ran using the arguments -b or --bump-tag-deploy followed by the bump type:

$ dokku-deploy --bump-tag-deploy major

Bump & Tag

Bump and tag will prompt for the type of bump to perform and create a tag. This is the same as running npm version <bump-type> and pushing to your git repository.

This will NOT deploy to your dokku server.

$ dokku-deploy
Dokku Deploy CLI - 0.0.1
Project: my-node-project - 1.2.3

? What would you like to do? Bump & Tag
? Select the type of bump to perform: Patch
Bumping to the next patch version...
pushing to remote...
Bumped and tagged version 1.2.4

This command can also be ran using the arguments -t or --bump-tag followed by the bump type:

$ dokku-deploy --bump-tag minor

Deploy Tag

Deploy tag lets you deploy any existing tag to your dokku server. It's very useful when you want to roll back to an existing version. Tags will be sorted and selectable using the arrow keys.

$ dokku-deploy
Dokku Deploy CLI - 0.0.1
Project: my-node-project - 1.2.3

? What would you like to do? Deploy Tag
? Select a tag to deploy: (Use arrow keys)
❯ v1.2.4
  v1.2.3
  v1.2.2
  v1.2.1

This command can also be ran using the arguments -d or --deploy followed by the tag name:

$ dokku-deploy --deploy v1.2.4

Contribution and Bug Reports

If you have any issues please submit a bug or feel free to fork the repo and create a PR.