5 5. Deploying on our server
jomo edited this page 2015-01-09 22:05:35 +01:00

Never edit the files directly on the server!


The test server uses the dev branch, the production server uses master.
Do not git pull on the server! We have automated scripts for that.

Deploying on test server

  • Push all changes
  • Run <server-dir>/git_pull_utils.sh.
  • Restart (You may try to /reload here, but expect the unexpected)

Deploying on production server

  1. Test all code carefully on the test server
  2. on your machine:
  • git pull --all && git checkout master && git merge dev
  • when you get no errors: git push
  • make sure you go back to dev: git checkout dev
  1. on the server:
  • rs update_utils
  • now restart to apply changes: rs restart (don't reload!)