Last active
June 4, 2018 01:43
-
-
Save alvarovillafane/4fd2d24265f2c0eed6c9f290d24e8e2f to your computer and use it in GitHub Desktop.
Wordpress Composer Initial Install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "repositories": [ | |
| { | |
| "type": "composer", | |
| "url": "https://wpackagist.org" | |
| }, | |
| { | |
| "type": "package", | |
| "package": { | |
| "name": "wp-sync-db/wp-sync-db", | |
| "type": "wordpress-plugin", | |
| "version": "1.5", | |
| "dist": { | |
| "type": "zip", | |
| "url": "https://github.com/wp-sync-db/wp-sync-db/archive/1.5.zip" | |
| } | |
| } | |
| }, | |
| { | |
| "type": "package", | |
| "package": { | |
| "name": "wp-sync-db/wp-sync-db-media-files", | |
| "type": "wordpress-plugin", | |
| "version": "1.1.5", | |
| "dist": { | |
| "type": "zip", | |
| "url": "https://github.com/wp-sync-db/wp-sync-db-media-files/archive/1.1.5.zip" | |
| } | |
| } | |
| } | |
| ], | |
| "require": { | |
| "php": ">=5.6", | |
| "composer/installers": "^1.4", | |
| "vlucas/phpdotenv": "^2.0.1", | |
| "johnpbloch/wordpress": "^4.9.5", | |
| "oscarotero/env": "^1.1.0", | |
| "roots/wp-password-bcrypt": "1.0.0", | |
| "wp-sync-db/wp-sync-db": "^1.5", | |
| "wp-sync-db/wp-sync-db-media-files": "^1.1", | |
| "wpackagist-plugin/advanced-custom-fields": "^4.4", | |
| "wpackagist-plugin/wp-mail-smtp": "^1.0", | |
| "wpackagist-plugin/updraftplus":"^1.14", | |
| "wpackagist-plugin/contact-form-7":"5.0.2", | |
| "wpackagist-plugin/tinymce-advanced":"4.7.11" | |
| }, | |
| "require-dev": { | |
| "squizlabs/php_codesniffer": "^3.0.2", | |
| "wp-coding-standards/wpcs": "^0.14" | |
| }, |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bedrock
Bedrock is a modern WordPress stack that helps you get started with the best development tools and project structure.
Much of the philosophy behind Bedrock is inspired by the Twelve-Factor App methodology including the WordPress specific version.
Features
Use Trellis for additional features:
See a complete working example in the roots-example-project.com repo.
Requirements
Installation
composer create-project roots/bedrock your-project-folder-name.envfile: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 (http://example.com)WP_SITEURL- Full URL to WordPress including subdirectory (http://example.com/wp)AUTH_KEY,SECURE_AUTH_KEY,LOGGED_IN_KEY,NONCE_KEY,AUTH_SALT,SECURE_AUTH_SALT,LOGGED_IN_SALT,NONCE_SALTIf you want to automatically generate the security keys (assuming you have wp-cli installed locally) you can use the very handy wp-cli-dotenv-command:
Or, you can cut and paste from the Roots WordPress Salt Generator.
Add theme(s) in
web/app/themesas you would for a normal WordPress site.Set your site vhost document root to
/path/to/site/web/(/path/to/site/current/web/if using deploys)Access WP admin at
http://example.com/wp/wp-adminDeploys
There are two methods to deploy Bedrock sites out of the box:
Any other deployment method can be used as well with one requirement:
composer installmust be run as part of the deploy process.Documentation
Bedrock documentation is available at https://roots.io/bedrock/docs/.
Contributing
Contributions are welcome from everyone. We have contributing guidelines to help you get started.
Community
Keep track of development and community news.