Development workflow
As Senior developer
- Create a Master Branch
- Create a Test Branch
- Create a User-Story from Test Branch and assign to developer
As Developer
Once user story is assigned, identify the branch
Checkout
platform environment:syncronize
platform tunnel:open
Pull code
platform local:build
git status
Pull DB
drush sql-sync @MASTER-BRANCH @self -y && drush cr
Pull files
drush rsync @drupal.MY-BRANCH:%files @self:%files
Code and commit
git add -A
git commit -m "some code done"
Optional - export configuration and commit
drush cex -y
git add -A
git commit -m "configuration exported"
Push
platform snapshot:create
git push bitbucket
platform snapshot:create