Update the sga website
- Check the git status
$ git status
- Pull from development
$ git pull origin development
- Enter your github credentials
- Make sure if you want to migrate that you're careful not to migrate everything
$ php artisan migrate
- If there's an error, try
$ composer update
Making Changes on the Production Server
- Follow steps 1-3 from updating on the development server
- Always deploy to staging FIRST never the other way around
$cd /data/sga_webapp/htdocs/test/
- Look at all the projects
$ ls
- Change directory into the pertinent project. Usually
sga-website
$ cd sga-website
- Check the status
git status
- If you have a new release branch then check out the development branch
git checkout development
- Update it
git pull origin development
- Switch to your release branch
git checkout -b current-release-branch
- Pull from the branch
git pull origin current-release-branch
- Depending on the changes you may need to run a
composer update
- After doing these changes on staging do a quick test then repeat the same steps in production
cd /data/sga_webpapps/htdocs/
instead of /data/sga_webapps/test/