SpinupWP Composer Site
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
- PHP >= 7.1
- Composer - Install
Installation
- Create a new project:
$ composer create-project deliciousbrains/spinupwp-composer-site
- 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)
- Add theme(s) in
public/content/themes/
as you would for a normal WordPress site - Set the document root in SpinupWP's server settings to
/public
. - Access WordPress admin at
https://mysite.com/wp/wp-admin/