Committing to FGdb

From FreekiWiki
Revision as of 18:53, 22 December 2009 by Ryan52 (talk | contribs) (add to ASS category)
Jump to navigation Jump to search

If you need to make a change to the live database (it can't wait for me to be around or for a release to happen), do this:

  1. Get a checkout fgdb.rb:
    1. git clone dev.freegeek.org:/git/fgdb.rb
  2. On a checkout of fgdb.rb:
    1. git fetch
    2. git checkout -b release_$(./script/sorted-tags | tail -1) origin/release_$(./script/sorted-tags | tail -1) || git checkout release_$(./script/sorted-tags | tail -1)
    3. git pull
    4. change stuff
    5. git commit -a -m "commit msg"
    6. git checkout master
    7. git pull
    8. git merge release_$(./script/sorted-tags | tail -1)
    9. git push
  3. Then on arik:
    1. sleep 60 # waiting for the mirror that it pulls from to update
    2. cd /var/www/fgdb.rb
    3. sudo git pull
  4. Restart fgdb (only needed if code was changed):
    1. ./script/nice-restart