Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build Phabricator Development Management platform

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article is about how to build a Phabricator development and management platform, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

1. Build Phabricator development management platform 1.1 upload SSL/TLS certificate

Step 1: download the certificate and decompress it

Step 2: upload the certificate and private key to the development management platform server

1. Sftp buntu@123.207.229.222. Put 1dev.*

Step 3: copy the certificate and private key to the / host/crt folder

Log in to the CVM ssh ubuntu@123.207.229.22 and run the following command

1. Mkdir-p / host/crt2. Cp ~ / 1_dev.appcook.cn_bundle.crt / host/crt/https.cert3. Cp ~ / 1_dev.appcook.cn.key / host/crt/https.cert.key1.2 create a Phabricator container

Log in to the CVM ssh ubuntu@123.207.229.22 and use the docker run command to create a file named pha

The container.

1. Docker run-d-- restart=always-- name=pha\ 2.-- 80:80-p 443-p 2222 name=pha\ 3.-- env PHABRICATOR_HOST=dev.appcook.cn\ 4.-- env MYSQL_HOST= {{database private network address}}\ 5.-- env MYSQL_USER= {{database user name (with database permission)}\ 6.-- env MYSQL_PASS= {{database password}\ 7.- -env PHABRICATOR_VCS_PORT=2222\ 8.-- env PHABRICATOR_REPOSITORY_PATH=/repos\ 9.-- env PHABRICATOR_HOST_KEYS_PATH=/hostkeys/persisted\ 10.-- env PHABRICATOR_STORAGE_TYPE=disk\ 11.-- env PHABRICATOR_STORAGE_PATH=/files\ 12.-- env SSL_TYPE=manual\ 13.-- env SSL_CERTIFICATE=/crt/https.cert\ 14.-- env SSL_PRIVATE_KEY=/crt/https.cert.key\ 15.-v / host/ Hostkeys:/hostkeys\ 16.-v / host/repo:/repos\ 17.-v / host/files:/files\ 18.-v / host/crt:/crt\ 19. Hachque/phabricator1.3 resolves domain names

Resolve the domain name dev.appcook.cn to 123.207.229.22

Step 1: log in to the Tencent Cloud domain name resolution console

Step 3: add A record (it is recommended to resolve it in the way of associated hosts)

Create successfully and return to the control panel

Step 2: configure web login authentication method

Enter the auth application

Configure login options

Configuration successful

Step 3: add a public key (for code repository)

Enter the settings panel

Uploaded successfully

Step 4: update the code repository owner

1. # enter container 2. Docker exec-it pha / bin/bash3.4. # change code repository owner 5. Chown git:wwwgrp-phabricator / repos

Step 5: configure feed.http-hooks (automatic deployment)

Enter the container and use the. / bin/config command to configure Feed hook

1. Sudo docker exec-it pha / bin/bash2. Cd / srv/phabricator/phabricator3. . / bin/config set''feed.http-hooks''' ["http://10.141.133.180:8090/1/feed/receive">

Access https://dev.appcook.cn/config/edit/feed.http-hooks/ to check configuration

Automatic deployment script feed.php

1.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report