To setup current WordPress project, you should do the following steps: (Project is based on WordPress Starter )
cd /path/to/your/project/empty/folder/
git clone http://repository-domain.com/your/project.git
- master - stable production copy,
- develop - current development copy
git checkout <branch-name>
composer update
(if you don't have composer installed on your machine you can download php script: https://getcomposer.org/download/)
git checkout -b {issue#}_{short descr}
- Update environment variables in
.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 (http://example.com)
- Download latest database dump from repository "Downloads" section (Bitbucket)
- Import sql dump to your database
- Upgrade URLs inside database with any method you like the most: WP Host update, WP Migrate, WP CLI