To move to Bedrock, this is the procedure I follow. (We often do this when taking on clients with an existing website.)
- Create a new Bedrock install
composer create-project roots/bedrock my-bedrock-project
- Set up your database and configure variables in
.env
For these first two steps, I actually just run wp valet new my-bedrock-project
- but it requires Valet and the wonderful wp-valet plugin.
- Copy over your existing theme and uploads
mv existing_site/wp-content/themes/* my-bedrock-project/web/app/themes/
mv existing_site/wp-content/uploads/* my-bedrock-project/web/app/uploads/
- Import your database and replace old
wp-content
URLs
wp import db old-site-dump.sql
wp search-replace 'wp-content' 'app'
- Require all your existing plugins
composer require wpackagist-plugin/my-plugin-1 wpackagist-plugin/my-plugin-2
- Set up your version control system
git init
git add . && git commit -am 'Initial commit'
You should now be good to go.