/dev/docs/bookreaderdeployment
Type: /type/page
body: value: ## BookReader Deployment to the Internet Archive ##

To deploy pre changes to the Internet Archive.

 * [Deploy to www-testflip.archive.org](http://openlibrary.org/dev/docs/bookreadertesting)
 * QA on www-testflip.archive.org
 ** On home.us.archive.org
<pre>
    su testflip
    cd bookreader; git fetch upstream; git checkout upstream/master (or a branch)
    ~/tools/arsync.py -l # makes sure symlinks are set up  
</pre>

 * **Update version number** in [BookReader.inc](http://github.com/openlibrary/bookreader/blob/master/BookReaderIA/inc/BookReader.inc#L100).  This ensures clients have the most recent pre version.
 * Push changes to github
 * Create and push tag:

<pre>
    (master) mang@home:~/bookreader
    $ git tag Release27
    (master) mang@home:~/bookreader
    $ git push origin Release27
</pre>

 * Your tag should now appear as a download on the [BookReader downloads page](http://github.com/openlibrary/bookreader/downloads)

 * Copy your changes to regular files in your `petabox` tree:

<pre>
    mang@home:~
    $ ~/tools/arsync.py --git2svn
    Copying files in ~/bookreader/BookReader to ~/petabox/www/sf/bookreader
        book_bottom_icon.png
        book_down_icon.png
        [...]
        Files in SVN working copy are now REGULAR files ready for checkin
</pre>

 * Examine your changes, check if you need to add files, etc..

<pre>
    mang@home:~
    $ cd /home/mang/petabox/
    mang@home:~/petabox
    $ svn stat
    mang@home:~/petabox
    $ svn diff
</pre>

 * Commit and deploy to the cluster as normal (datanodes if necessary, then webnodes)
title: BookReader Deployment to the Internet Archive