clickpdx/devenv

There is no license information available for the latest version (dev-master) of this package.

Development Environment for WordPress

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Language:Ruby

Type:project

dev-master 2020-11-28 06:06 UTC

This package is auto-updated.

Last update: 2024-04-18 14:07:11 UTC


README

Use Vagrant to download and configure a LAMP stack for WordPress development. The environment is downloaded into a guest virtual machine on your local computer.

Installation

After installing this repository and running vagrant up use the vagrant ssh command to login to the guest machine. The guest machine's shared folder, /vagrant, should reflect all of the files in this repository.

Before installing this repository, download the Vagrant VM environment at https://www.vagrantup.com/downloads.html. Once installed, you can use Vagrant command line tools - especially vagrant up -- to complete the installation. The vagrant up command retrieves configuration settings from the Vagrantfile to download Virtual Box; then Composer can be used to complete the WordPress installation.

Command-line installation

Clone this repository then run the vagrant up --provision command.

Vagrant configuration

Configurations are listed as YML files. Default.yml is responsible for configuring environment variables; various playbooks are responsible for installing and configuring additional software. Playbooks are loaded in using the playbooks/playbooks.yml file.

Other programs installed as part of this environment are:

  • Apache2, The Apache web server.
  • MySQL, The MySQL database server.
  • PHP, The PHP CLI and Apache2 modules.
  • WordPress, The popular open-source CMS/blog software.
  • Composer, The PHP package manager.

Installation - Guest/Host

Vagrant and the vagrant up command will install a guest machine on your local computer (the host machine.) Guest and host machines communicate through one or more shared folders - typically /vagrant folder or any additional shared folders specified in the Vagrantfile.

Installation - Apache

WORKFLOW

  • Clone this repo
  • Install WordPress (into this repo directory)
    • Optionally require WordPress in composer.json file
  • Run composer install
    • Should install plugins
    • Should install wireframe theme
    • Optionally installs child theme as well

@TODO COMPOSER: REQUIRE

  • composer/installers
  • custom-sidebars
  • my-social-widget
  • wordpress-importer
  • wp-packagist/wireframe (clickpdx/wireframe in GitHub)

COMPOSER: REQUIRE-DEV

  • php
  • phpunit
  • wpackagist-plugin/fg-drupal-to-wp

Initial Project Setup

  1. Download vagrant
  2. Download virtualbox
  3. Install both
  4. Run vagrant up
  5. Edit host name
  6. Edit IP
  7. Edit Host file in Win32/Drivers
  8. Change host file to correspond with the virtualbox
  9. Install wordpress
  10. Add composer file to wordpress directory
  11. Run vagrant ssh on root directory in powershell
  12. Run composer update on wordpress directory to add plugins and the wireframe repo to file directory
  13. Create a child theme folder with Functions.php and Styles.css in it, in wp-content/themes
  14. Write header of styles.css to connect to the wireframe theme
  15. Enque the styles in functions.php
  16. Activate Child theme
  17. Install plugins downloaded from the composer file to the child theme
  18. Import content if rebuilding a site
  19. Get content from xml file
  20. Import/Export menus

Update database prompt url http://dev.ocdla.org/wp-admin/upgrade.php?_wp_http_referer=%2Fwp-admin%2F

plugin error messages: The plugin create-and-assign-categories-for-pages/create-and-assign-categories-for-pages.php has been deactivated due to an error: Plugin file does not exist.

The plugin custom-post-widget/custom-post-widget.php has been deactivated due to an error: Plugin file does not exist.

The plugin modal/modal.php has been deactivated due to an error: Plugin file does not exist.

The plugin wp-media-manager-lite/wp-media-manager-lite.php has been deactivated due to an error: Plugin file does not exist.

Login Credentials:

Username: admin@ocdla.org Password: password