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.
- Timestamp:
-
Jul 15, 2009, 4:47:21 PM (14 years ago)
- Author:
-
hank
- Comment:
-
work on how-to
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v35
|
v36
|
|
75 | 75 | }}} |
76 | 76 | |
77 | | === Install Duplicity / S3tools === |
78 | | |
79 | | Duplicity is our preferred backup method. Install s3tools for S3. |
80 | | |
81 | | {{{ |
82 | | > sudo apt-get install duplicity python-boto s3cmd |
| 77 | === Install Duplicity / S3tools / Rsync === |
| 78 | |
| 79 | Duplicity is our preferred backup method. Install s3tools for S3. Rsync for app syncing. |
| 80 | |
| 81 | {{{ |
| 82 | > sudo apt-get install duplicity python-boto s3cmd rsync |
83 | 83 | }}} |
84 | 84 | |
… |
… |
|
99 | 99 | === Install MySQL === |
100 | 100 | Install MySQL with python db support mysqldb. |
101 | | |
102 | 101 | {{{ |
103 | 102 | OLD: > sudo apt-get install mysql-server mysql-python |
… |
… |
|
119 | 118 | }}} |
120 | 119 | |
121 | | === Download SF App From !SilverFile Dev Server === |
122 | | On Dev Server export SF svn repo to create a clean copy: |
| 120 | === Install SilverFile App === |
| 121 | |
| 122 | '''On Dev Server export SF svn repo to create a clean copy:''' |
123 | 123 | {{{ |
124 | 124 | rm -rf /usr/svn/sfexport |
… |
… |
|
126 | 126 | }}} |
127 | 127 | |
128 | | Create Initial Copy From Mercurial Repo (as hank): |
| 128 | '''Create app directory:''' |
| 129 | {{{ |
| 130 | mkdir -p /usr/wwwapps/sf-app/ |
| 131 | }}} |
| 132 | |
| 133 | '''Create Initial Copy From Mercurial Repo (as hank):''' |
129 | 134 | {{{ |
130 | 135 | /usr/bin/rsync -av --timeout=300 --delete -e '/usr/bin/ssh -p 2240 -o ConnectTimeout=3' \ |
… |
… |
|
137 | 142 | }}} |
138 | 143 | |
139 | | Create a unique secret key for production/settings.py: |
| 144 | '''Create a unique secret key for production/settings.py:''' |
140 | 145 | cd /usr/wwwapps/sf-app/files/ |
141 | 146 | {{{ |
… |
… |
|
145 | 150 | >>> utils.django.new_secret_key() |
146 | 151 | }}} |
147 | | |
148 | 152 | Copy secret key into settings.py |
| 153 | |
| 154 | '''Copy DB credentials into settings.py''' |
| 155 | {{{ |
| 156 | |
| 157 | }}} |
| 158 | '''Initialize App Database''' |
| 159 | {{{ |
| 160 | python manage.py syncdb |
| 161 | }}} |
149 | 162 | |
150 | 163 | === Configure SSL === |