# Deployment on MyBiz Staging Server ### Preparation before running Shell Script File #### Git * Push the updated code in your own branch * Merge into `staging` branch #### Staging Server Information `ssh -i "prod-mybiz-batch.pem" ec2-user@35.74.81.196` ### Run Bash #### File Location *${Home}/release.sh* #### Bash Command Run on Staging Server as following : `bash release.sh web / bash release.sh batch` #### Bash Working Procedure 1. Running bash file will create a new dir at "Home/src/phplaravel_new" 2. Then it will checkout to `staging` branch and do `git fetch` and `git pull` at new dir. 3. After `git pull` process finish, targeted folder (web or batch) will be `rsync` (remotely copied and synchronizing files and directories) to 'var/www/phplaravel' folder.