Socket
Book a DemoInstallSign in
Socket

punch-sftp-publisher

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

punch-sftp-publisher

Publish your site to any host that supports SFTP

1.0.4
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

SFTP Publisher for Punch

Publish your Punch based sites to any host that provides SFTP access.

How to Use

  • Install the package

      npm install punch-sftp-publisher
    
  • Open your Punch project's configurations (config.json) and add the following:

      "plugins": {
    
      	"publishers": {
      		"sftp": "punch-sftp-publisher" 
      	}
    
      }
    
  • Also, you must define publish settings in the config.

      	"publish" : {
      		"strategy" : "sftp",
      		"options" : {
      				"host" : "hostname",
      				"username" : "sftpuser",
      				"port" : "22",
      				"private_key" : "/home/user/.ssh/id_rsa",
      				"upload_path" : "/var/www/"
      		}
      	}
    

You must specify server's hostname and your username to login. If you're using a private/public key to authenticate, make sure you specify the explicit full path to the private key (or provide the private key as a string). Files will be uploaded to the remote path specified as upload_path.

  • Then, you can publish your site by running punch publish (or punch p) command.

Keywords

punch

FAQs

Package last updated on 13 May 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.