Socket
Socket
Sign inDemoInstall

dockerpress

Package Overview
Dependencies
52
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dockerpress

Local docker theme development


Version published
Maintainers
1
Created

Readme

Source

#DockerPress

The purpose of this package is to allow wordpress developers to get a theme loaded into a docker container and ready for development fast.

Usage

From within the repo run npm install -g. This will install dockerpress globally.

DockerPress requires that there be a dockerpress.json configuration file in the theme directory. This json file should be added to .gitignore if multiple developers will have different configurations.

To create a dockerpress.json file run dockerpress init

A series of questions will be asked. Most notably:

  • containerName: This is the unique docker container name for this project
  • themeFolderName: This will be the name of the theme folder.

The rest of the configurations can easily be left as default.

Note that this process will map your theme repository to the theme folder on the Docker VM. If you intend to use a backup service to mirror your live site (like Updraft Plus), make sure that you do not restore the theme folder!!! Attempting to install the theme folder results in a bug where the local theme repository files are deleted.

To create the image, container, and run your development site run : dockerpress run

From there I recommend using Kitematic to manage the VM.

FAQs

Last updated on 07 Jul 2017

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