spinupwp / spinupwp-composer-site
Installs: 238
Dependents: 0
Suggesters: 0
Security: 0
Stars: 110
Watchers: 13
Forks: 21
Open Issues: 9
Type:project
Requires
- php: >=7.3
- composer/installers: ^1.4
- johnpbloch/wordpress: 5.*
- oscarotero/env: ^1.1.0
- vlucas/phpdotenv: ^5.3
- wpackagist-plugin/limit-login-attempts-reloaded: *
- wpackagist-plugin/spinupwp: *
- wpackagist-theme/twentytwentyone: *
Requires (Dev)
This package is auto-updated.
Last update: 2024-11-07 15:15:59 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
- PHP >= 7.3
- Composer - Install
Installation
- Create a new project:
$ composer create-project spinupwp/spinupwp-composer-site /path/to/site/webroot
- Update environment variables in the
.env
file:
DB_NAME
- Database nameDB_USER
- Database userDB_PASSWORD
- Database passwordDB_HOST
- Database hostWP_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/