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

upssh

v1.0.2

Published

Deploy an application via ssh

Downloads

2

Readme

UpSsh - Deploy remotely via SSH

About

upssh is a command line that deploys remotely via SSH with the following steps:

  • Move the replaced directory to a backup location with a timestamp
  • Upload the current / working directory

Features

  • Ignore files defined in .ignore and .upssh-ignore

Getting Started

  • Install upssh globally
yarn add -g upssh 
  • Go to the project directory to deploy
cd directory/To/Deploy
  • Copy the .env.dist file properties to a .env file
  • Set the UPSSH env values correctly
UPSSH_SFTP_SERVER=hostname
UPSSH_SFTP_USER=user
UPSSH_SFTP_PASSWORD=pwd
UPSSH_SFTP_PORT=22
# If you have only one remote repository
# otherwise you can also create a play upssh.json
# Where the data is uploaded
UPSSH_TARGET_PATH=/path/to/
# Where the actual directory is moved
UPSSH_BACKUP_PATH=/backup/path
  • Add your env file in an ignore file (to not upload it)
  • Optionally, use a play upssh.json if you want to upload only subdirectories
  • Execute upssh
upssh

Example of output

The .gitignore file was added
The .upssh-ignore file was not found
Remote host was set to example.com on port 22
Remote user was set to www-data
A password was found
Trying to connect
Connected
Move the directory (/opt/www/app) to (/opt/www/backup/app_2020-06-23T11:01:11.955Z)
Upload the directory (.) to (/opt/www/app)
Created target directory:/opt/www/app
(ignored file  : .env)
(uploaded dir   : .git)
  * uploaded file : .gitignore to /opt/www/app/.gitignore
  * uploaded file : action.php to /opt/www/app/action.php
Created target directory:/opt/www/app/conf
  * uploaded file : conf\default.php to /opt/www/app/conf/default.php
  * uploaded file : conf\metadata.php to /opt/www/app/conf/metadata.php
* process dir   : conf (D:\app\conf)
Created target directory:/opt/www/app/lang
Created target directory:/opt/www/app/lang/en
  * uploaded file : lang\en\settings.php to /opt/www/app/lang/en/settings.php
* process dir   : en (D:\app\lang\en)
Created target directory:/opt/www/app/lang/ja
  * uploaded file : lang\ja\settings.php to /opt/www/app/lang/ja/settings.php
* process dir   : ja (D:\app\lang\ja)
Created target directory:/opt/www/app/lang/pl
  * uploaded file : lang\pl\settings.php to /opt/www/app/lang/pl/settings.php
* process dir   : pl (D:\app\lang\pl)
Created target directory:/opt/www/app/lang/se
  * uploaded file : lang\se\settings.php to /opt/www/app/lang/se/settings.php
* process dir   : se (D:\app\lang\se)
Created target directory:/opt/www/app/lang/zh
  * uploaded file : lang\zh\settings.php to /opt/www/app/lang/zh/settings.php
* process dir   : zh (D:\app\lang\zh)
* process dir   : lang (D:\app\lang)
  * uploaded file : plugin.info.txt to /opt/www/app/plugin.info.txt
  * uploaded file : README to /opt/www/app/README
  * uploaded file : script.js to /opt/www/app/script.js
  * uploaded file : test.html to /opt/www/app/test.html
Disconnected
Bye

Change log

  • 1.0.0 - upload of one directory only
  • 1.0.1 - introduction of a play to upload more than one directory.
  • 1.0.2 - the data is uploaded to a temporary directory, and the directory switch happens at the end

Dev documentation

See Dev