##// END OF EJS Templates
Rename paster command setup-rhodecode to setup-db
Bradley M. Kuhn -
r4185:aaa7c333 kallithea-2.2.5-r...
parent child Browse files
Show More
@@ -221,7 +221,7 b' character differences between Unix and W'
221 221 For the sake of simplicity lets run it with the default settings. After
222 222 your edits (if any), in the previous Command Prompt, type::
223 223
224 paster setup-rhodecode production.ini
224 paster setup-db production.ini
225 225
226 226 (this time a NEW database will be installed, you must follow a different
227 227 step to later UPGRADE to a newer RhodeCode version)
@@ -26,20 +26,20 b' configuration file to use this other dat'
26 26 postgresql, sqlite and mysql databases. Create the database by running
27 27 the following command::
28 28
29 paster setup-rhodecode production.ini
29 paster setup-db production.ini
30 30
31 31 This will prompt you for a "root" path. This "root" path is the location where
32 32 RhodeCode will store all of its repositories on the current machine. After
33 entering this "root" path ``setup-rhodecode`` will also prompt you for a username
34 and password for the initial admin account which ``setup-rhodecode`` sets
33 entering this "root" path ``setup-db`` will also prompt you for a username
34 and password for the initial admin account which ``setup-db`` sets
35 35 up for you.
36 36
37 37 setup process can be fully automated, example for lazy::
38 38
39 paster setup-rhodecode production.ini --user=nn --password=secret --email=nn@your.kallithea.server --repos=/home/nn/my_repos
39 paster setup-db production.ini --user=nn --password=secret --email=nn@your.kallithea.server --repos=/home/nn/my_repos
40 40
41 41
42 - The ``setup-rhodecode`` command will create all of the needed tables and an
42 - The ``setup-db`` command will create all of the needed tables and an
43 43 admin account. When choosing a root path you can either use a new empty
44 44 location, or a location which already contains existing repositories. If you
45 45 choose a location which contains existing repositories RhodeCode will simply
@@ -57,7 +57,7 b' You are now ready to use RhodeCode, to r'
57 57 - This command runs the RhodeCode server. The web app should be available at the
58 58 127.0.0.1:5000. This ip and port is configurable via the production.ini
59 59 file created in previous step
60 - Use the admin account you created above when running ``setup-rhodecode``
60 - Use the admin account you created above when running ``setup-db``
61 61 to login to the web app.
62 62 - The default permissions on each repository is read, and the owner is admin.
63 63 Remember to update these if needed.
1 NO CONTENT: file renamed from rhodecode/lib/paster_commands/setup_rhodecode.py to rhodecode/lib/paster_commands/setup_db.py
@@ -1,7 +1,7 b''
1 1 #!/bin/sh
2 2 psql -U postgres -h localhost -c 'drop database if exists rhodecode;'
3 3 psql -U postgres -h localhost -c 'create database rhodecode;'
4 paster setup-rhodecode rc.ini --force-yes --user=marcink --password=qweqwe --email=marcin@python-blog.com --repos=/home/marcink/repos --no-public-access
4 paster setup-db rc.ini --force-yes --user=marcink --password=qweqwe --email=marcin@python-blog.com --repos=/home/marcink/repos --no-public-access
5 5 API_KEY=`psql -R " " -A -U postgres -h localhost -c "select api_key from users where admin=TRUE" -d rhodecode | awk '{print $2}'`
6 6 echo "run those after running server"
7 7 paster serve rc.ini --pid-file=rc.pid --daemon
@@ -169,7 +169,7 b' setup('
169 169 main = pylons.util:PylonsInstaller
170 170
171 171 [paste.global_paster_command]
172 setup-rhodecode=rhodecode.lib.paster_commands.setup_rhodecode:Command
172 setup-db=rhodecode.lib.paster_commands.setup_db:Command
173 173 update-repoinfo=rhodecode.lib.paster_commands.update_repoinfo:Command
174 174 make-rcext=rhodecode.lib.paster_commands.make_rcextensions:Command
175 175 repo-scan=rhodecode.lib.paster_commands.repo_scan:Command
General Comments 0
You need to be logged in to leave comments. Login now