Giter VIP home page Giter VIP logo

pilothouse's Introduction

Pilothouse App

An open-source local LEMP development stack using Docker. Comes with a set of Bash scripts for starting and stopping the stack, creating and deleting WordPress installs, keeping the hosts file updated, and running WP-CLI commands, among other useful features.

Pilothouse supports multiple local sites, Xdebug, multiple versions of PHP, and running WP-CLI commands directly from the host. Pilothouse is tailored to WordPress projects, but can be used for general PHP projects as well.

What's Inside

  • Nginx
  • PHP 5.6, 7.0, and 7.1
  • MariaDB
  • Memcached
  • Xdebug
  • WP-CLI
  • MailCatcher

Quick Start

  1. Install Docker.
  2. Once installed, open Docker on your computer and run through the initial configuration settings.
  3. Clone the repo to your computer.
  4. Run composer install.
  5. Add the bin path in the repo to your shell include path (more info).
  6. Run pilothouse up to build the containers and boot up the system. On the first run, this will take quite a while as the Docker containers are downloaded and built.
  7. Create a new site by running pilothouse create.

Notes

  • See the Wiki for instructions on using WP-CLI, Xdebug, Mailcatcher, etc.
  • Local WordPress sites are located in the sites directory. This can be changed.
  • The default WordPress username and password is admin/password.
  • The Bash scripts have only been tested on macOS; your mileage on other OSes will vary.

Commands

  • wp [command]: Runs a WP-CLI command in the Docker container against the current site.
  • pilothouse up: Boots up the Docker containers, and adds all necessary site entries to the host's hosts file.
  • pilothouse down: Halts the Docker containers, removing all site entries from the host's hosts file.
  • pilothouse restart [container]: Restarts the specified Docker container (nginx, memcached, etc.), or the entire system if no container is specified.
  • pilothouse create [site]: Creates a new local site.
  • pilothouse delete [site]: Deletes an existing local site.
  • pilothouse generate-ssl [site]: Generates, installs, and trusts a self-signed SSL certificate for the specified site.
  • pilothouse mysql [command]: Runs the provided MySQL command. The command will be run on the database of the current site, or with no database selected if not run from within a site directory.
  • pilothouse compose [command]: Runs a docker-compose command with required environment variables set.

License

Pilothouse is open source software licensed under the GPLv2. Pilothouse is authored by Philip Newcomer, along with help from these awesome contributors.

pilothouse's People

Contributors

philipnewcomer avatar aaronholbrook avatar jacobarriola avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.