Linux

rhodecode install

Naan 2019. 4. 2. 16:10
320x100


https://rhodecode.com/download/community

에서 다운


# chmod 777 RhodeCode-installer-linux-build20190311_1100


기본 설치

root@localhost:~# ./RhodeCode-installer-linux-build20190311_1100

Installing RhodeCode Control as root is not recommended.

Continue with the installation? [y/N]: y

Do you accept the RhodeCode Control license?

Press [Y] to accept license and [V] to view license text: Y

Directory `/opt/rhodecode` does not exist.

To create `/opt/rhodecode` you need to run:


    mkdir -m 0755 -p /opt/rhodecode && chown root /opt/rhodecode


Press [Y] to execute above command via sudo: Y


 * Installation progress: 100%



Installation log: /tmp/rc-installer-2019-03-28-15-01-29-574419-zGxt1Y.log


Installation successful!

++++++++++++++++++++++++


A new cli script called `rccontrol` has been installed.

With this command, you can manage your instances, eg. install, start, stop, restart etc.

Open a new terminal to gain access to it, source your existing session or use

~/.rccontrol-profile/bin/rccontrol binary directly right now.


Quickstart:

-----------


Install VCSServer first, by running:

  ~/.rccontrol-profile/bin/rccontrol install VCSServer


Install RhodeCode Community Edition, or Enterprise Edition, by running:

  ~/.rccontrol-profile/bin/rccontrol install Community

or

  ~/.rccontrol-profile/bin/rccontrol install Enterprise


Finally, check your instances status by running `rccontrol status`

Full set of commands for rccontrol is available at https://docs.rhodecode.com/RhodeCode-Control/tasks/rccontrol-cli.html


커뮤니티 버전 설치

[root@localhost ~]# ~/.rccontrol-profile/bin/rccontrol install Community

Updating MANIFEST file with latest version from https://dls.rhodecode.com/linux/MANIFEST

About to install `community-1` instance with version: 4.16.1.


Do you accept the RhodeCode Community license?

Press [Y] to accept license and [V] to view license text: y


First super-admin username.

Use this username for first log-in to RhodeCode Application.

Username [admin]: admin


Initial password for super-admin.

You can always change it after logging in.

Password (min 6 chars):

Repeat for confirmation:


Email for super-admin. Important notifications are

sent to that email. It can be changed later at any time.

Email: test@test.com(메일주소)


Path to store the RhodeCode repositories, and repository groups.

If existing path is given RhodeCode can import repositories from it.

This path is also used to store Gists. It can be changed later in admin interface.

Make sure this path is writable by RhodeCode.

Repositories location [/root/repos]:


Default IP Address to run this instance.

Default [127.0.0.1] should be used together with http proxy such as Apache or Nginx.

Use 0.0.0.0 to allow access via this server IP directly.

This can be changed inside /root/.rccontrol/community-1/rhodecode.ini config later by modifying host= parameter.

IP to start the RhodeCode Community server on [127.0.0.1]:


Default port to start the instance.

This can be changed inside /root/.rccontrol/community-1/rhodecode.ini config later by modifying port= parameter.

Port for the RhodeCode Community server to use [10020]:


Choose database type for new installation.

SQLite should be used in small environments (3-4 users), or for testing purposes.

Choose MySQL or PostgreSQL for optimal performance.

To use MySQL/PostgreSQL you need to create a new database before continuing.

Make sure this host can connect to your Database server.

Database connection details are saved under `sqlalchemy.db1.url =` variable inside /root/.rccontrol/community-1/rhodecode.ini.

Database type - [s]qlite, [m]ysql, [p]ostresql:

SQLite selected

Creating new instance: community-1

Installing RhodeCode Community

Downloading https://dls.rhodecode.com/linux/RhodeCodeCommunity-4.16.1+x86_64-linux_build20190311_1100.tar.bz2 ...

Extracting Community ...

Configuring RhodeCode Community ...

2019-03-28 20:16:34.792 [19236] INFO  [rhodecode.model] RhodeCode 4.16.1 initializing db for sqlite:////root/.rccontrol/community-1.tmp/rhodecode.db

2019-03-28 20:16:34.793 [19236] INFO  [rhodecode.lib.db_manage] Existing database with the same name is going to be destroyed.

2019-03-28 20:16:34.793 [19236] INFO  [rhodecode.lib.db_manage] Setup command will run DROP ALL command on that database.

2019-03-28 20:16:34,797 INFO sqlalchemy.engine.base.Engine SELECT CAST('test plain returns' AS VARCHAR(60)) AS anon_1

2019-03-28 20:16:34,797 INFO sqlalchemy.engine.base.Engine ()

2019-03-28 20:16:34,797 INFO sqlalchemy.engine.base.Engine SELECT CAST('test unicode returns' AS VARCHAR(60)) 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


WHERE repositories.repo_type = ?) AS anon_1

2019-03-28 20:16:37,802 INFO sqlalchemy.engine.base.Engine ('svn',)

2019-03-28 20:16:38,838 INFO sqlalchemy.engine.base.Engine ROLLBACK

2019-03-28 20:16:38.839 [19236] INFO  [rhodecode.config.middleware] Pyramid app `pyramid_app_with_cleanup` created and configured in 2.99s

()

***********************************************************

SUCCESSFULLY INITIALIZED DATABASE, SCHEMA AND DEFAULT DATA.

***********************************************************

Configuration of RhodeCode Community passed.

Saving accepted license locally under /root/.rccontrol/community-1

Supervisord state is: RUNNING

Added process group community-1



환경설정 수정

vi /root/.rccontrol/community-1/rhodecode.ini


[server:main]

## COMMON ##

host = 127.0.0.1

port = 10020

127.0.0.1 로 하면 접속이 localhost 로만 접속 된다 IP를 입력해주자.



cd /opt/rhodecode/store/idlg296x52d8bck8xq5ff67gk4ziffj5-python2.7-rhodecode-control-1.22.1/bin/

./rccontrol restart community-1

아마 설치 하는 환경에 따라 위치가 다를듯 하다. rccontrol 위치를 찾아서 구동 하면 된다.


http://localhost:10020
하면

접속이 된다.


혹시



위와 같이 에러가 발생한다면 VCSServer 를 설치를 안하거나 연결 문제가 있어서 그렇다

320x100