Making Changes - marist-sga/documentation GitHub Wiki

Update the sga website

  1. Check the git status

$ git status

  1. Pull from development

$ git pull origin development

  1. Enter your github credentials
  2. Make sure if you want to migrate that you're careful not to migrate everything

$ php artisan migrate

  1. If there's an error, try

$ composer update

Making Changes on the Production Server

  1. Follow steps 1-3 from updating on the development server
  2. Always deploy to staging FIRST never the other way around

$cd /data/sga_webapp/htdocs/test/

  1. Look at all the projects

$ ls

  1. Change directory into the pertinent project. Usually sga-website

$ cd sga-website

  1. Check the status

git status

  1. If you have a new release branch then check out the development branch

git checkout development

  1. Update it

git pull origin development

  1. Switch to your release branch

git checkout -b current-release-branch

  1. Pull from the branch

git pull origin current-release-branch

  1. Depending on the changes you may need to run a

composer update

  1. 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/