spinupwp/spinupwp-composer-site

1.0.8 2022-01-26 10:30 UTC

This package is auto-updated.

Last update: 2024-12-07 15:34:27 UTC


README

This is a WordPress site setup using Composer that is primed and ready to be hosted using SpinupWP.

Inspired by Root's Bedrock and other Composer based setups.

Requirements

Installation

  1. Create a new project:
    $ composer create-project spinupwp/spinupwp-composer-site /path/to/site/webroot
  2. Update environment variables in the .env file:
  • DB_NAME - Database name
  • DB_USER - Database user
  • DB_PASSWORD - Database password
  • DB_HOST - Database host
  • WP_ENV - Set to environment (development, staging, production)
  • WP_HOME - Full URL to WordPress home (https://mysite.com)
  • WP_SITEURL - Full URL to WordPress including subdirectory (https://mysite.com/wp)
  1. Add theme(s) in public/content/themes/ as you would for a normal WordPress site
  2. Set the document root in SpinupWP's server settings to /public.
  3. Access WordPress admin at https://mysite.com/wp/wp-admin/