close Warning: Can't synchronize with repository "(default)" (/usr/svn/silverfile does not appear to be a Subversion repository.). Look in the Trac log for more information.

Changes between Version 20 and Version 21 of servers/setup-condensed


Ignore:
Timestamp:
Jul 2, 2009, 9:13:57 PM (13 years ago)
Author:
hank
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • servers/setup-condensed

    v20 v21  
    7575}}}
    7676
    77 #=== Install Mercurial ===
    78 #Mercurial is installed for syncing latest app source.
    79 
    80 #{{{
    81 #> sudo apt-get install mercurial
    82 #}}}
    83 
    8477=== Install Django ===
    8578The platform for our app.
     
    120113Create Initial Copy From Mercurial Repo (as root):
    121114
    122 mkdir -p /usr/wwwapps/sf-app/
    123 cd /usr/wwwapps/sf-app/
    124 scp -r -P 2240 hank@dev.silverfilecorp.com:/usr/hg/repos/sf-app/configs configs
    125 scp -r -P 2240 hank@dev.silverfilecorp.com:/usr/hg/repos/sf-app/files files
    126 scp -r -P 2240 hank@dev.silverfilecorp.com:/usr/hg/repos/sf-app/utils utils
    127 scp -r -P 2240 hank@dev.silverfilecorp.com:/usr/hg/repos/sf-app/third_party third_party
    128 
    129 
    130 First get private key for accessing mercurial repository, mercurial_key_rsa
    131 {{{
    132 #!comment
    133 > mv mercurial_key_rsa .ssh/id_rsa
    134 > hg clone ssh://hg@dev.silverfilecorp.com:2240/sf-app
    135 }}}
    136 
    137 # Next copy sf-app to wwwapps directory:
    138 # {{{
    139 # sudo mkdir -p /usr/wwwapps/
    140 # sudo cp -r /home/user/sf-app /usr/wwwapps/sf-app
    141 # }}}
     115{{{
     116/usr/bin/rsync -av --timeout=300 --delete -e '/usr/bin/ssh -p 2240 -o ConnectTimeout=3' \
     117  hank@dev.silverfilecorp.com:/usr/hg/repos/sf-app/configs \
     118  hank@dev.silverfilecorp.com:/usr/hg/repos/sf-app/files \
     119  hank@dev.silverfilecorp.com:/usr/hg/repos/sf-app/utils \
     120  hank@dev.silverfilecorp.com:/usr/hg/repos/sf-app/third_party \
     121  hank@dev.silverfilecorp.com:/home/hank/production \
     122  /usr/wwwapps/sf-app/
     123}}}
    142124
    143125=== Configure SSL  ===