rhodecode
Setting up RhodeCode
First, you will need to create a RhodeCode configuration file. Run the following command to do this:
shell# paster make-config RhodeCode production.ini
This will create the file production.ini in the current directory. This configuration file contains the various settings for RhodeCode, e.g proxy port, email settings, usage of static files, cache, celery settings and logging.
Next, you need to create the databases used by RhodeCode. I recommend that you use sqlite (default) or postgresql. If you choose a database other than the default ensure you properly adjust the db url in your production.ini configuration file to use this other database. Create the databases by running the following command:
shell# paster setup-app production.ini
edit production.ini and change lines
host = 127.0.0.1
port = 5000
to ip from shell (type ifconfig or vhost ) and diffrent port
host = 79.133.201.93
port = 4542
This will prompt you for a “root” path. This “root” path is the location where RhodeCode will store all of its repositories on the current machine. After entering this “root” path setup-app will also prompt you for a username and password for the initial admin account which setup-app sets up for you.
The setup-app command will create all of the needed tables and an admin account. When choosing a root path you can either use a new empty location, or a location which already contains existing repositories. If you choose a location which contains existing repositories RhodeCode will simply add all of the repositories at the chosen location to it’s database. (Note: make sure you specify the correct path to the root).
Note: the given path for mercurial repositories must be write accessible for the application. It’s very important since the RhodeCode web interface will work without write access, but when trying to do a push it will eventually fail with permission denied errors unless it has write access.
You are now ready to use RhodeCode, to run it simply execute:
shell# paster serve production.ini
http://79.133.201.93:4542/
This command runs the RhodeCode server. The web app should be available at the 127.0.0.1:5000. This ip and port is configurable via the production.ini file created in previous step
Use the admin account you created above when running setup-app to login to the web app.
The default permissions on each repository is read, and the owner is admin. Remember to update these if needed.
In the admin panel you can toggle ldap, anonymous, permissions settings. As well as edit more advanced options on users and repositories
Try copying your own mercurial repository into the “root” directory you are using, then from within the RhodeCode web application choose Admin > repositories. Then choose Add New Repository. Add the repository you copied into the root. Test that you can browse your repository from within RhodeCode and then try cloning your repository from RhodeCode with:
hg clone http://127.0.0.1:5000/<repository name>
Have Fun :D


Tutorials 