Socket
Socket
Sign inDemoInstall

wordpress-deploy

Package Overview
Dependencies
38
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    wordpress-deploy

Easily deploy your wordpress theme via FTP.


Version published
Weekly downloads
10
increased by900%
Maintainers
1
Install size
1.29 MB
Created
Weekly downloads
 

Readme

Source

wordpress-deploy

Easily deploy your wordpress theme via FTP.


Install

Install the package globally:

npm install -g wordpress-deploy

Now you can use the bash command wordpress-deploy (or in short wp-dep) preferably from within your wordpress folder.

wp-dep

Config

Add a config file named wordpress-deploy.config.js to your wordpress folder and adjust accordingly.

Make sure to add the config file to your .gitignore

const config = {
  // The hostname or IP address of the FTP server
  host: 'localhost',

  // The port of the FTP server
  port: 21,

  // Username for authentication
  user: 'anonymous',

  // Password for authentication
  password: 'secret',

  // The theme name
  theme: 'my-wordpress-theme',

  // The local theme folder location
  pathLocal: './wp-content/themes',

  // The remote theme folder location
  pathRemote: './wp-content/themes',

  // The remote folder in which to save uploading files and backups
  backup: './.wordpress-deploy',

  // Files or folders to ignore
  // Folder paths are relative to the theme folder
  // To ignore a folder use two patterns: 'folder', 'folder/**'
  ignore: ['.DS_Store', 'node_modules', 'node_modules/**']
};

module.exports = config;

Example file: wordpress-deploy.config.js

You can also provide an argument to use a different config filename:

wp-dep --config=my-custom-config.js

All config parameters can be used as arguments, for example:

wp-dep --theme=my-theme

Keywords

FAQs

Last updated on 10 Apr 2021

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc