##// END OF EJS Templates
docs: update Windows installation documentation for Windows 7/Server 2008 R2 and newer...
Denis Blanchette -
r4815:64b1a232 default
parent child Browse files
Show More
@@ -0,0 +1,238 b''
1 .. _installation_win:
2
3
4 Installation and upgrade on Windows (7/Server 2008 R2 and newer)
5 ================================================================
6
7 First time install
8 ::::::::::::::::::
9
10 Target OS: Windows 7 and newer or Windows Server 2008 R2 and newer
11
12 Tested on Windows 8.1, Windows Server 2008 R2 and Windows Server 2012
13
14 To install on an older version of Windows, see `<installation_win_old.html>`_
15
16
17 Step 1 - Install Python
18 -----------------------
19
20 Install Python 2.x.y (x = 6 or 7). Latest version is recommended. If you need another version, they can run side by side.
21
22 DO NOT USE A 3.x version.
23
24 - Download Python 2.x.y from http://www.python.org/download/
25 - Choose and click on the version
26 - Click on "Windows X86-64 Installer" for x64 or "Windows x86 MSI installer" for Win32.
27 - Disable UAC or run the installer with admin privileges. If you chose to disable UAC, do not forget to reboot afterwards.
28
29 While writing this Guide, the latest version was v2.7.9.
30 Remember the specific major and minor versions installed, because they will
31 be needed in the next step. In this case, it is "2.7".
32
33
34 Step 2 - Python BIN
35 -------------------
36
37 Add Python BIN folder to the path
38
39 You have to add the Python folder to the path, you can do it manually (editing "PATH" environment variable) or using Windows Support Tools that came preinstalled in Vista/7 and later.
40
41 Open a CMD and type::
42
43 SETX PATH "%PATH%;[your-python-path]" /M
44
45 Please substitute [your-python-path] with your Python installation path. Typically: C:\\Python27
46
47
48 Step 3 - Install Win32py extensions
49 -----------------------------------
50
51 Download pywin32 from:
52 http://sourceforge.net/projects/pywin32/files/
53
54 - Click on "pywin32" folder
55 - Click on the first folder (in this case, Build 219, maybe newer when you try)
56 - Choose the file ending with ".amd64-py2.x.exe" (".win32-py2.x.exe" for Win32) -> x being the minor version of Python you installed (in this case, 7).
57 When writing this Guide, the file was:
58 http://sourceforge.net/projects/pywin32/files/pywin32/Build%20219/pywin32-219.win-amd64-py2.7.exe/download (x64)
59 http://sourceforge.net/projects/pywin32/files/pywin32/Build%20219/pywin32-219.win32-py2.7.exe/download (Win32)
60
61
62 Step 4 - Install pip
63 --------------------
64
65 pip is a package management system for Python. You will need it to install Kallithea and its dependencies.
66
67 If you installed Python 2.7.9+, you already have it (as long as you ran the installer with admin privileges or disabled UAC).
68
69 If it was not installed or if you are using Python>=2.6,<2.7.9:
70
71 - Go to https://bootstrap.pypa.io
72 - Right-click on get-pip.py and choose Saves as...
73 - Run "python get-pip.py" in the folder where you downloaded get-pip.py (may require admin access).
74 (See http://stackoverflow.com/questions/4750806/how-to-install-pip-on-windows for explanations or alternatives)
75
76 Note that pip.exe will be placed inside your Python installation's Scripts folder, which is likely not on your path.
77
78 Open a CMD and type::
79
80 SETX PATH "%PATH%;[your-python-path]\Scripts" /M
81
82
83 Step 5 - Kallithea Folder Structure
84 -----------------------------------
85
86 Create a Kallithea folder structure.
87
88 This is only an example to install Kallithea. Of course, you can change it. However, this Guide will follow the proposed structure, so please later adapt the paths if you change them. Folders with NO SPACES are recommended. But you can try it if you are brave...
89
90 Create the following folder structure::
91
92 C:\Kallithea
93 C:\Kallithea\Bin
94 C:\Kallithea\Env
95 C:\Kallithea\Repos
96
97
98 Step 6 - Install virtualenv
99 ---------------------------
100
101 .. note::
102 A python virtual environment will allow for isolation between the Python packages of your system and those used for Kallithea.
103 It is strongly recommended to use it to ensure that Kallithea does not change a dependency that another software uses or vice versa.
104 If you are using your server (or VM) only for Kallithea, you can skip this step, at your own risk.
105
106 Install Virtual Env for Python
107
108 In a command prompt type::
109
110 pip install virtualenv
111
112 Virtualenv will now be inside your Python Scripts path (C:\\Python27\\Scripts or similar).
113
114 To create a virtual environment, run::
115
116 virtualenv C:\Kallithea\Env
117
118
119 Step 7 - Install Kallithea
120 --------------------------
121
122 In order to install Kallithea, you need to be able to run "pip install kallithea". It will use Python pip to install the Kallithea Python package and its dependencies.
123 Some Python packages use managed code and need to be compiled.
124 This can be done on Linux without any special steps. On Windows, you will need to install Microsoft Visual C++ compiler for Python 2.7.
125
126 Download and install "Microsoft Visual C++ Compiler for Python 2.7" from http://aka.ms/vcpython27
127
128 .. note::
129 You can also install the dependencies using already compiled Windows binaries packages. A good source of compiled Python packages is http://www.lfd.uci.edu/~gohlke/pythonlibs/. However, not all of the necessary packages for Kallithea are on this site and some are hard to find, so we will stick with using the compiler.
130
131 In a command prompt type (adapting paths if necessary)::
132
133 cd C:\Kallithea\Env\Scripts
134 activate
135
136 The prompt will change into "(Env) C:\\Kallithea\\Env\\Scripts" or similar
137 (depending of your folder structure). Then type::
138
139 pip install kallithea
140
141 (Long step, please wait until fully complete)
142
143 Some warnings will appear. Don't worry, they are normal.
144
145
146 Step 8 - (Optional) Install git
147 -------------------------------
148 Mercurial being a python package, it was installed automatically when doing "pip install kallithea".
149
150 You need to install git manually if you want Kallithea to be able to host git repositories.
151
152 See http://git-scm.com/book/en/v2/Getting-Started-Installing-Git#Installing-on-Windows for instructions.
153
154
155 Step 9 - Configuring Kallithea
156 ------------------------------
157
158 Steps taken from `<setup.html>`_
159
160 You have to use the same command prompt as in Step 7, so if you closed it, reopen it following the same commands (including the "activate" one).
161
162 When ready, type::
163
164 cd C:\Kallithea\Bin
165 paster make-config Kallithea production.ini
166
167 Then, you must edit production.ini to fit your needs (IP address, IP port, mail settings, database, etc.) NotePad++ (free) or similar text editors are recommended, as they handle well the EndOfLine character differences between Unix and Windows (http://notepad-plus-plus.org/).
168
169 For the sake of simplicity, run it with the default settings. After your edits (if any), in the previous Command Prompt, type::
170
171 paster setup-db production.ini
172
173 (This time a NEW database will be installed. You must follow a different step to later UPGRADE to a newer Kallithea version)
174
175 The script will ask you for confirmation about creating a NEW database, answer yes (y)
176
177 The script will ask you for repository path, answer C:\\Kallithea\\Repos (or similar).
178
179 The script will ask you for admin username and password, answer "admin" + "123456" (or whatever you want)
180
181 The script will ask you for admin mail, answer "admin@xxxx.com" (or whatever you want)
182
183 If you make a mistake and the script doesn't end, don't worry: start it again.
184
185 If you decided not to install git, you will get errors about it that you can ignore.
186
187
188 Step 10 - Running Kallithea
189 ---------------------------
190
191 In the previous command prompt, being in the C:\\Kallithea\\Bin folder, type::
192
193 paster serve production.ini
194
195 Open your web server, and go to http://127.0.0.1:5000
196
197 It works!! :-)
198
199 Remark:
200 If it does not work the first time, Ctrl-C the CMD process and start it again. Don't forget the "http://" in Internet Explorer.
201
202
203 What this Guide does not cover:
204
205 - Installing Celery
206 - Running Kallithea as a Windows Service. You can investigate here:
207
208 - http://pypi.python.org/pypi/wsgisvc
209 - http://ryrobes.com/python/running-python-scripts-as-a-windows-service/
210 - http://wiki.pylonshq.com/display/pylonscookbook/How+to+run+Pylons+as+a+Windows+service
211
212 - Using Apache. You can investigate here:
213
214 - https://groups.google.com/group/rhodecode/msg/c433074e813ffdc4
215
216
217 Upgrading
218 :::::::::
219
220 Stop running Kallithea
221 Open a CommandPrompt like in Step 7 (cd to C:\Kallithea\Env\Scripts and activate) and type::
222
223 pip install kallithea --upgrade
224 cd \Kallithea\Bin
225
226 Backup your production.ini file now.
227
228 Then, run::
229
230 paster make-config Kallithea production.ini
231
232 Look for changes and update your production.ini accordingly.
233
234 Then, update the database::
235
236 paster upgrade-db production.ini
237
238 Full steps in `<upgrade.html>`_
@@ -1,66 +1,67 b''
1 .. _index:
1 .. _index:
2
2
3 .. include:: ./../README.rst
3 .. include:: ./../README.rst
4
4
5 Users Guide
5 Users Guide
6 -----------
6 -----------
7
7
8 **Installation:**
8 **Installation:**
9
9
10 .. toctree::
10 .. toctree::
11 :maxdepth: 1
11 :maxdepth: 1
12
12
13 installation
13 installation
14 upgrade
14 upgrade
15 installation_win
15 installation_win_old
16 installation_win_old
16 installation_iis
17 installation_iis
17 setup
18 setup
18
19
19 **Usage**
20 **Usage**
20
21
21 .. toctree::
22 .. toctree::
22 :maxdepth: 1
23 :maxdepth: 1
23
24
24 usage/general
25 usage/general
25 usage/git_support
26 usage/git_support
26 usage/performance
27 usage/performance
27 usage/locking
28 usage/locking
28 usage/statistics
29 usage/statistics
29 usage/backup
30 usage/backup
30 usage/subrepos
31 usage/subrepos
31 usage/debugging
32 usage/debugging
32 usage/troubleshooting
33 usage/troubleshooting
33
34
34 **Develop**
35 **Develop**
35
36
36 .. toctree::
37 .. toctree::
37 :maxdepth: 1
38 :maxdepth: 1
38
39
39 contributing
40 contributing
40 changelog
41 changelog
41
42
42 **API**
43 **API**
43
44
44 .. toctree::
45 .. toctree::
45 :maxdepth: 1
46 :maxdepth: 1
46
47
47 api/api
48 api/api
48 api/models
49 api/models
49
50
50
51
51 Other topics
52 Other topics
52 ------------
53 ------------
53
54
54 * :ref:`genindex`
55 * :ref:`genindex`
55 * :ref:`search`
56 * :ref:`search`
56
57
57 .. _virtualenv: http://pypi.python.org/pypi/virtualenv
58 .. _virtualenv: http://pypi.python.org/pypi/virtualenv
58 .. _python: http://www.python.org/
59 .. _python: http://www.python.org/
59 .. _django: http://www.djangoproject.com/
60 .. _django: http://www.djangoproject.com/
60 .. _mercurial: http://mercurial.selenic.com/
61 .. _mercurial: http://mercurial.selenic.com/
61 .. _bitbucket: http://bitbucket.org/
62 .. _bitbucket: http://bitbucket.org/
62 .. _subversion: http://subversion.tigris.org/
63 .. _subversion: http://subversion.tigris.org/
63 .. _git: http://git-scm.com/
64 .. _git: http://git-scm.com/
64 .. _celery: http://celeryproject.org/
65 .. _celery: http://celeryproject.org/
65 .. _Sphinx: http://sphinx.pocoo.org/
66 .. _Sphinx: http://sphinx.pocoo.org/
66 .. _vcs: http://pypi.python.org/pypi/vcs
67 .. _vcs: http://pypi.python.org/pypi/vcs
@@ -1,292 +1,291 b''
1 .. _installation_win_old:
1 .. _installation_win_old:
2
2
3
3
4 Step by step Installation for Windows
4 Installation and upgrade on Windows (XP/Vista/Server 2003/Server 2008)
5 =====================================
5 ======================================================================
6
6
7
7 First time install
8 Kallithea step-by-step install Guide for Windows
8 ::::::::::::::::::
9
9
10 Target OS: Windows XP SP3 32bit English (Clean installation)
10 Target OS: Windows XP SP3 32bit English (Clean installation)
11 + All Windows Updates until 24-may-2012
11 + All Windows Updates until 24-may-2012
12
12
13 .. note::
13 .. note::
14
14
15 This installation is for 32bit systems, for 64bit windows you might need
15 This installation is for 32bit systems, for 64bit windows you might need
16 to download proper 64bit versions of the different packages(Windows Installer, Win32py extensions)
16 to download proper 64bit versions of the different packages(Windows Installer, Win32py extensions)
17 plus some extra tweaks.
17 plus some extra tweaks.
18 These extra steps haven been marked as "64bit".
18 These extra steps haven been marked as "64bit".
19 Tested on Windows Server 2008 R2 SP1, 9-feb-2013.
19 Tested on Windows Server 2008 R2 SP1, 9-feb-2013.
20 If you run into any 64bit related problems, please check these pages:
20 If you run into any 64bit related problems, please check these pages:
21 - http://blog.victorjabur.com/2011/06/05/compiling-python-2-7-modules-on-windows-32-and-64-using-msvc-2008-express/
21 - http://blog.victorjabur.com/2011/06/05/compiling-python-2-7-modules-on-windows-32-and-64-using-msvc-2008-express/
22 - http://bugs.python.org/issue7511
22 - http://bugs.python.org/issue7511
23
23
24 Step1 - Install Visual Studio 2008 Express
24 Step1 - Install Visual Studio 2008 Express
25 ------------------------------------------
25 ------------------------------------------
26
26
27
27
28 Optional: You can also install MinGW, but VS2008 installation is easier.
28 Optional: You can also install MinGW, but VS2008 installation is easier.
29
29
30 Download "Visual C++ 2008 Express Edition with SP1" from:
30 Download "Visual C++ 2008 Express Edition with SP1" from:
31 http://www.microsoft.com/visualstudio/en-us/products/2008-editions/express
31 http://download.microsoft.com/download/E/8/E/E8EEB394-7F42-4963-A2D8-29559B738298/VS2008ExpressWithSP1ENUX1504728.iso
32 (if not found or relocated, google for "visual studio 2008 express" for
32 (if not found or relocated, google for "visual studio 2008 express" for updated link. This link was taken from http://stackoverflow.com/questions/15318560/visual-c-2008-express-download-link-dead)
33 updated link)
34
33
35 You can also download full ISO file for offline installation, just
34 You can also download full ISO file for offline installation, just
36 choose "All - Offline Install ISO image file" in the previous page and
35 choose "All - Offline Install ISO image file" in the previous page and
37 choose "Visual C++ 2008 Express" when installing.
36 choose "Visual C++ 2008 Express" when installing.
38
37
39 .. note::
38 .. note::
40
39
41 Using other versions of Visual Studio will lead to random crashes.
40 Using other versions of Visual Studio will lead to random crashes.
42 You must use Visual Studio 2008!"
41 You must use Visual Studio 2008!"
43
42
44 .. note::
43 .. note::
45
44
46 Silverlight Runtime and SQL Server 2008 Express Edition are not
45 Silverlight Runtime and SQL Server 2008 Express Edition are not
47 required, you can uncheck them
46 required, you can uncheck them
48
47
49 .. note::
48 .. note::
50
49
51 64bit: You also need to install the Microsoft Windows SDK for .NET 3.5 SP1 (.NET 4.0 won't work).
50 64bit: You also need to install the Microsoft Windows SDK for .NET 3.5 SP1 (.NET 4.0 won't work).
52 Download from: http://www.microsoft.com/en-us/download/details.aspx?id=3138
51 Download from: http://www.microsoft.com/en-us/download/details.aspx?id=3138
53
52
54 .. note::
53 .. note::
55
54
56 64bit: You also need to copy and rename a .bat file to make the Visual C++ compiler work.
55 64bit: You also need to copy and rename a .bat file to make the Visual C++ compiler work.
57 I am not sure why this is not necessary for 32bit.
56 I am not sure why this is not necessary for 32bit.
58 Copy C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat to C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat
57 Copy C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat to C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat
59
58
60
59
61 Step2 - Install Python
60 Step2 - Install Python
62 ----------------------
61 ----------------------
63
62
64 Install Python 2.x.y (x = 6 or 7) x86 version (32bit). DO NOT USE A 3.x version.
63 Install Python 2.x.y (x = 6 or 7) x86 version (32bit). DO NOT USE A 3.x version.
65 Download Python 2.x.y from:
64 Download Python 2.x.y from:
66 http://www.python.org/download/
65 http://www.python.org/download/
67
66
68 Choose "Windows Installer" (32bit version) not "Windows X86-64
67 Choose "Windows Installer" (32bit version) not "Windows X86-64
69 Installer". While writing this guide, the latest version was v2.7.3.
68 Installer". While writing this guide, the latest version was v2.7.3.
70 Remember the specific major and minor version installed, because it will
69 Remember the specific major and minor version installed, because it will
71 be needed in the next step. In this case, it is "2.7".
70 be needed in the next step. In this case, it is "2.7".
72
71
73 .. note::
72 .. note::
74
73
75 64bit: Just download and install the 64bit version of python.
74 64bit: Just download and install the 64bit version of python.
76
75
77 Step3 - Install Win32py extensions
76 Step3 - Install Win32py extensions
78 ----------------------------------
77 ----------------------------------
79
78
80 Download pywin32 from:
79 Download pywin32 from:
81 http://sourceforge.net/projects/pywin32/files/
80 http://sourceforge.net/projects/pywin32/files/
82
81
83 - Click on "pywin32" folder
82 - Click on "pywin32" folder
84 - Click on the first folder (in this case, Build 217, maybe newer when you try)
83 - Click on the first folder (in this case, Build 217, maybe newer when you try)
85 - Choose the file ending with ".win32-py2.x.exe" -> x being the minor
84 - Choose the file ending with ".win32-py2.x.exe" -> x being the minor
86 version of Python you installed (in this case, 7)
85 version of Python you installed (in this case, 7)
87 When writing this guide, the file was:
86 When writing this guide, the file was:
88 http://sourceforge.net/projects/pywin32/files/pywin32/Build%20217/pywin32-217.win32-py2.7.exe/download
87 http://sourceforge.net/projects/pywin32/files/pywin32/Build%20217/pywin32-217.win32-py2.7.exe/download
89
88
90 .. note::
89 .. note::
91
90
92 64bit: Download and install the 64bit version.
91 64bit: Download and install the 64bit version.
93 At the time of writing you can find this at:
92 At the time of writing you can find this at:
94 http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/pywin32-218.win-amd64-py2.7.exe/download
93 http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/pywin32-218.win-amd64-py2.7.exe/download
95
94
96 Step4 - Python BIN
95 Step4 - Python BIN
97 ------------------
96 ------------------
98
97
99 Add Python BIN folder to the path
98 Add Python BIN folder to the path
100
99
101 You have to add the Python folder to the path, you can do it manually
100 You have to add the Python folder to the path, you can do it manually
102 (editing "PATH" environment variable) or using Windows Support Tools
101 (editing "PATH" environment variable) or using Windows Support Tools
103 that came preinstalled in Vista/7 and can be installed in Windows XP.
102 that came preinstalled in Vista/7 and can be installed in Windows XP.
104
103
105 - Using support tools on WINDOWS XP:
104 - Using support tools on WINDOWS XP:
106 If you use Windows XP you can install them using Windows XP CD and
105 If you use Windows XP you can install them using Windows XP CD and
107 navigating to \SUPPORT\TOOLS. There, execute Setup.EXE (not MSI).
106 navigating to \SUPPORT\TOOLS. There, execute Setup.EXE (not MSI).
108 Afterwards, open a CMD and type::
107 Afterwards, open a CMD and type::
109
108
110 SETX PATH "%PATH%;[your-python-path]" -M
109 SETX PATH "%PATH%;[your-python-path]" -M
111
110
112 Close CMD (the path variable will be updated then)
111 Close CMD (the path variable will be updated then)
113
112
114 - Using support tools on WINDOWS Vista/7:
113 - Using support tools on WINDOWS Vista/7:
115
114
116 Open a CMD and type::
115 Open a CMD and type::
117
116
118 SETX PATH "%PATH%;[your-python-path]" /M
117 SETX PATH "%PATH%;[your-python-path]" /M
119
118
120 Please substitute [your-python-path] with your Python installation path.
119 Please substitute [your-python-path] with your Python installation path.
121 Typically: C:\\Python27
120 Typically: C:\\Python27
122
121
123
122
124 Step5 - Kallithea folder structure
123 Step5 - Kallithea folder structure
125 ----------------------------------
124 ----------------------------------
126
125
127 Create a Kallithea folder structure
126 Create a Kallithea folder structure
128
127
129 This is only a example to install Kallithea, you can of course change
128 This is only a example to install Kallithea, you can of course change
130 it. However, this guide will follow the proposed structure, so please
129 it. However, this guide will follow the proposed structure, so please
131 later adapt the paths if you change them. My recommendation is to use
130 later adapt the paths if you change them. My recommendation is to use
132 folders with NO SPACES. But you can try if you are brave...
131 folders with NO SPACES. But you can try if you are brave...
133
132
134 Create the following folder structure::
133 Create the following folder structure::
135
134
136 C:\Kallithea
135 C:\Kallithea
137 C:\Kallithea\Bin
136 C:\Kallithea\Bin
138 C:\Kallithea\Env
137 C:\Kallithea\Env
139 C:\Kallithea\Repos
138 C:\Kallithea\Repos
140
139
141
140
142 Step6 - Install virtualenv
141 Step6 - Install virtualenv
143 ---------------------------
142 ---------------------------
144
143
145 Install Virtual Env for Python
144 Install Virtual Env for Python
146
145
147 Navigate to: http://www.virtualenv.org/en/latest/index.html#installation
146 Navigate to: http://www.virtualenv.org/en/latest/index.html#installation
148 Right click on "virtualenv.py" file and choose "Save link as...".
147 Right click on "virtualenv.py" file and choose "Save link as...".
149 Download to C:\\Kallithea (or whatever you want)
148 Download to C:\\Kallithea (or whatever you want)
150 (the file is located at
149 (the file is located at
151 https://raw.github.com/pypa/virtualenv/master/virtualenv.py)
150 https://raw.github.com/pypa/virtualenv/master/virtualenv.py)
152
151
153 Create a virtual Python environment in C:\\Kallithea\\Env (or similar). To
152 Create a virtual Python environment in C:\\Kallithea\\Env (or similar). To
154 do so, open a CMD (Python Path should be included in Step3), navigate
153 do so, open a CMD (Python Path should be included in Step3), navigate
155 where you downloaded "virtualenv.py", and write::
154 where you downloaded "virtualenv.py", and write::
156
155
157 python virtualenv.py C:\Kallithea\Env
156 python virtualenv.py C:\Kallithea\Env
158
157
159 (--no-site-packages is now the default behaviour of virtualenv, no need
158 (--no-site-packages is now the default behaviour of virtualenv, no need
160 to include it)
159 to include it)
161
160
162
161
163 Step7 - Install Kallithea
162 Step7 - Install Kallithea
164 -------------------------
163 -------------------------
165
164
166 Finally, install Kallithea
165 Finally, install Kallithea
167
166
168 Close previously opened command prompt/s, and open a Visual Studio 2008
167 Close previously opened command prompt/s, and open a Visual Studio 2008
169 Command Prompt (**IMPORTANT!!**). To do so, go to Start Menu, and then open
168 Command Prompt (**IMPORTANT!!**). To do so, go to Start Menu, and then open
170 "Microsoft Visual C++ 2008 Express Edition" -> "Visual Studio Tools" ->
169 "Microsoft Visual C++ 2008 Express Edition" -> "Visual Studio Tools" ->
171 "Visual Studio 2008 Command Prompt"
170 "Visual Studio 2008 Command Prompt"
172
171
173 .. note::
172 .. note::
174
173
175 64bit: For 64bit you need to modify the shortcut that is used to start the
174 64bit: For 64bit you need to modify the shortcut that is used to start the
176 Visual Studio 2008 Command Prompt. Use right-mouse click to open properties.
175 Visual Studio 2008 Command Prompt. Use right-mouse click to open properties.
177
176
178 Change commandline from::
177 Change commandline from::
179
178
180 %comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86
179 %comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86
181
180
182 to::
181 to::
183
182
184 %comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" amd64
183 %comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" amd64
185
184
186
185
187 In that CMD (loaded with VS2008 PATHs) type::
186 In that CMD (loaded with VS2008 PATHs) type::
188
187
189 cd C:\Kallithea\Env\Scripts (or similar)
188 cd C:\Kallithea\Env\Scripts (or similar)
190 activate
189 activate
191
190
192 The prompt will change into "(Env) C:\\Kallithea\\Env\\Scripts" or similar
191 The prompt will change into "(Env) C:\\Kallithea\\Env\\Scripts" or similar
193 (depending of your folder structure). Then type::
192 (depending of your folder structure). Then type::
194
193
195 pip install kallithea
194 pip install kallithea
196
195
197 (long step, please wait until fully complete)
196 (long step, please wait until fully complete)
198
197
199 Some warnings will appear, don't worry as they are normal.
198 Some warnings will appear, don't worry as they are normal.
200
199
201
200
202 Step8 - Configuring Kallithea
201 Step8 - Configuring Kallithea
203 -----------------------------
202 -----------------------------
204
203
205
204
206 steps taken from http://packages.python.org/Kallithea/setup.html
205 steps taken from http://packages.python.org/Kallithea/setup.html
207
206
208 You have to use the same Visual Studio 2008 command prompt as Step7, so
207 You have to use the same Visual Studio 2008 command prompt as Step7, so
209 if you closed it reopen it following the same commands (including the
208 if you closed it reopen it following the same commands (including the
210 "activate" one). When ready, just type::
209 "activate" one). When ready, just type::
211
210
212 cd C:\Kallithea\Bin
211 cd C:\Kallithea\Bin
213 paster make-config Kallithea production.ini
212 paster make-config Kallithea production.ini
214
213
215 Then, you must edit production.ini to fit your needs (ip address, ip
214 Then, you must edit production.ini to fit your needs (ip address, ip
216 port, mail settings, database, whatever). I recommend using NotePad++
215 port, mail settings, database, whatever). I recommend using NotePad++
217 (free) or similar text editor, as it handles well the EndOfLine
216 (free) or similar text editor, as it handles well the EndOfLine
218 character differences between Unix and Windows
217 character differences between Unix and Windows
219 (http://notepad-plus-plus.org/)
218 (http://notepad-plus-plus.org/)
220
219
221 For the sake of simplicity lets run it with the default settings. After
220 For the sake of simplicity lets run it with the default settings. After
222 your edits (if any), in the previous Command Prompt, type::
221 your edits (if any), in the previous Command Prompt, type::
223
222
224 paster setup-db production.ini
223 paster setup-db production.ini
225
224
226 (this time a NEW database will be installed, you must follow a different
225 (this time a NEW database will be installed, you must follow a different
227 step to later UPGRADE to a newer Kallithea version)
226 step to later UPGRADE to a newer Kallithea version)
228
227
229 The script will ask you for confirmation about creating a NEW database,
228 The script will ask you for confirmation about creating a NEW database,
230 answer yes (y)
229 answer yes (y)
231 The script will ask you for repository path, answer C:\\Kallithea\\Repos
230 The script will ask you for repository path, answer C:\\Kallithea\\Repos
232 (or similar)
231 (or similar)
233 The script will ask you for admin username and password, answer "admin"
232 The script will ask you for admin username and password, answer "admin"
234 + "123456" (or whatever you want)
233 + "123456" (or whatever you want)
235 The script will ask you for admin mail, answer "admin@xxxx.com" (or
234 The script will ask you for admin mail, answer "admin@xxxx.com" (or
236 whatever you want)
235 whatever you want)
237
236
238 If you make some mistake and the script does not end, don't worry, start
237 If you make some mistake and the script does not end, don't worry, start
239 it again.
238 it again.
240
239
241
240
242 Step9 - Running Kallithea
241 Step9 - Running Kallithea
243 -------------------------
242 -------------------------
244
243
245
244
246 In the previous command prompt, being in the C:\\Kallithea\\Bin folder,
245 In the previous command prompt, being in the C:\\Kallithea\\Bin folder,
247 just type::
246 just type::
248
247
249 paster serve production.ini
248 paster serve production.ini
250
249
251 Open yout web server, and go to http://127.0.0.1:5000
250 Open yout web server, and go to http://127.0.0.1:5000
252
251
253 It works!! :-)
252 It works!! :-)
254
253
255 Remark:
254 Remark:
256 If it does not work first time, just Ctrl-C the CMD process and start it
255 If it does not work first time, just Ctrl-C the CMD process and start it
257 again. Don't forget the "http://" in Internet Explorer
256 again. Don't forget the "http://" in Internet Explorer
258
257
259
258
260
259
261 What this Guide does not cover:
260 What this Guide does not cover:
262
261
263 - Installing Celery
262 - Installing Celery
264 - Running Kallithea as Windows Service. You can investigate here:
263 - Running Kallithea as Windows Service. You can investigate here:
265
264
266 - http://pypi.python.org/pypi/wsgisvc
265 - http://pypi.python.org/pypi/wsgisvc
267 - http://ryrobes.com/python/running-python-scripts-as-a-windows-service/
266 - http://ryrobes.com/python/running-python-scripts-as-a-windows-service/
268 - http://wiki.pylonshq.com/display/pylonscookbook/How+to+run+Pylons+as+a+Windows+service
267 - http://wiki.pylonshq.com/display/pylonscookbook/How+to+run+Pylons+as+a+Windows+service
269
268
270 - Using Apache. You can investigate here:
269 - Using Apache. You can investigate here:
271
270
272 - https://groups.google.com/group/rhodecode/msg/c433074e813ffdc4
271 - https://groups.google.com/group/rhodecode/msg/c433074e813ffdc4
273
272
274
273
275 Upgrading
274 Upgrading
276 =========
275 :::::::::
277
276
278 Stop running Kallithea
277 Stop running Kallithea
279 Open a CommandPrompt like in Step7 (VS2008 path + activate) and type::
278 Open a CommandPrompt like in Step7 (VS2008 path + activate) and type::
280
279
281 easy_install -U kallithea
280 easy_install -U kallithea
282 cd \Kallithea\Bin
281 cd \Kallithea\Bin
283
282
284 { backup your production.ini file now} ::
283 { backup your production.ini file now} ::
285
284
286 paster make-config Kallithea production.ini
285 paster make-config Kallithea production.ini
287
286
288 (check changes and update your production.ini accordingly) ::
287 (check changes and update your production.ini accordingly) ::
289
288
290 paster upgrade-db production.ini (update database)
289 paster upgrade-db production.ini (update database)
291
290
292 Full steps in http://packages.python.org/Kallithea/upgrade.html
291 Full steps in http://packages.python.org/Kallithea/upgrade.html
General Comments 0
You need to be logged in to leave comments. Login now