diff options
author | Milo Casagrande <milo@ubuntu.com> | 2013-01-23 18:39:33 +0100 |
---|---|---|
committer | Milo Casagrande <milo@ubuntu.com> | 2013-01-23 18:39:33 +0100 |
commit | 957c94cd84c23f177e0e6d700f178754deef4a0f (patch) | |
tree | 6923ae7e67f0f646b14c08630ce7632c66b8591b | |
parent | c4422f47228b675c7810799d71ab126720ae7590 (diff) |
Worked on install instructions.
-rw-r--r-- | INSTALL | 33 |
1 files changed, 28 insertions, 5 deletions
@@ -153,7 +153,10 @@ In the 'config/' directory there is a default configuration file for a productio RhodeCode instance. Copy the file 'config/production.ini' into the home directory of the 'rhodecode' -user and sets its permissions accordingly. +user and sets its permissions accordingly: + + cp config/production.ini /home/rhodecode/production.ini + chown rhodecode:rhodecode /home/rhodecode/production.ini Download, Setup and Install RhodeCode ------------------------------------- @@ -164,7 +167,7 @@ under the 'rhodecode' home directoy, with the user 'rhodecode'. * Clone the 'rhodecode' repository from git.linaro.org: - git clone git://github.com/marcinkuzminski/rhodecode.git + git clone http://git.linaro.org/git-ro/infrastructure/rhodecode.git * Move in the 'rhodecode' directory, checkout the decicated branch and update: @@ -176,13 +179,13 @@ under the 'rhodecode' home directoy, with the user 'rhodecode'. --password=$PWD --repos=$REPOS The variable means: - * $CONF_FILE: path to the 'production.ini' file, that per these instructions + * $CONF_FILE: path to the 'production.ini' file, that for these instructions should be '/home/rhodecode/production.ini' * $USER: the name for the administrator user on the website * $EMAIL: the email of the administrator * $PWD: the password for the administrator * $REPOS: the path of the directory where the git repositories will be saved, - that per these instructions should be '/opt/git_repos' + that for these instructions should be '/opt/git_repos' * Install RhodeCode, using the 'rhodecode' user home directory as the base: python setup.py install --user @@ -206,5 +209,25 @@ reload the configuration. Start the services ------------------ -paster serve production.ini +In order to be able to start the services when the server boots, there are two +upstart configuration files that can be used. + +The are located in the 'config/' directory: + + * celeryd-upstart.conf + * rhodecode-upstart.conf + +Copy these files in respectively in: + + /etc/init/celeryd.conf + /etc/init/rhodecode.conf + +To start Celery and RhodeCode: + + service celeryd start + service rhodecode start + +To manually start the services, as the 'rhodecode' user: + paster celeryd $PATH/production.ini + paster server $PATH/production.ini |