Tutorial: How to Install RhodeCode on Windows 11
RhodeCode is an open-source platform for source code management. In this tutorial, we will guide you on how to install RhodeCode on Windows 11 using the Git Bash terminal.
Prerequisites
- A Windows 11 computer with administrative privileges
- Git Bash terminal installed
- Python 3.7 or above installed
- PostgreSQL 9.5 or above installed
Step 1: Clone RhodeCode
Open Git Bash terminal.
Change to the directory where you want to clone RhodeCode.
Clone the RhodeCode repository by running the following command:
git clone https://code.rhodecode.com/rhodecode-enterprise-ce.git
Step 2: Install RhodeCode dependencies
Open Git Bash terminal.
Change to the RhodeCode directory by running the following command:
cd rhodecode-enterprise-ceCreate a virtual environment by running the following command:
python -m venv venvActivate the virtual environment by running the following command:
source venv/Scripts/activateInstall the required dependent packages by running the following command:
python -m pip install -r requirements.txt
Step 3: Configure RhodeCode
Open Git Bash terminal.
Change to the conf directory by running the following command:
cd rhodecode-enterprise-ce/confsCopy the sample file
rhodecode.ini.sampletorhodecode.ini:cp rhodecode.ini.sample rhodecode.iniOpen the
rhodecode.inifile in a text editor and modify the following parameters:# PostgreSQL database settings db_url = postgresql://username:password@localhost/databasename # email settings smtp_server = smtp.example.com smtp_port = 587 smtp_username = username smtp_password = password # secret key secret_key = xxxxSave the changes and exit the text editor.
Step 4: Create the RhodeCode database
Open Git Bash terminal.
Change to the RhodeCode directory by running the following command:
cd rhodecode-enterprise-ceActivate the virtual environment by running the following command:
source venv/Scripts/activateCreate the RhodeCode database by running the following command:
paster setup-rhodecode [email protected] --password=admin [email protected] --force-yesComplete the database upgrade by running the following command:
paster upgrade
Step 5: Start RhodeCode
Open Git Bash terminal.
Change to the RhodeCode directory by running the following command:
cd rhodecode-enterprise-ceActivate the virtual environment by running the following command:
source venv/Scripts/activateRun the following command to start the RhodeCode server:
paster serve rhodecode.iniRhodeCode will start on
http://localhost:5000by default.
Conclusion
Congratulations! You have successfully installed RhodeCode on your Windows 11 computer. You can now start using RhodeCode to manage your source code.