-
Notifications
You must be signed in to change notification settings - Fork 1
Deploy
Lei Yang edited this page Aug 14, 2015
·
2 revisions
Besides the standard library, the toolchain uses the following Python modules.
- requests
- libpagure
- markdown
You may use pip to install the modules above.
git clone https://github.com/yangl1996/docs-toolchain.git
cd docs-toolchain
There is a few settings to do before running the toolchain.
cp config_sample.py config.py
vim config.py
-
listenAddr: address at which the toolchain listens for webhook calls and HTTP requests -
githubPort: port at which the toolchain listens for GitHub webhook calls -
pagurePort: port at which the toolchain listens for Pagure webhook calls -
localRepoPath: path to local git repository. This repository is used to sync new changes from GitHub to Pagure by doinggit pulland thengit push -
patchFolderPath: path to the directory at which the toolchain stores patches of pull requests -
issueDatabasePath: path to the sqlite3 database in which the toolchain holds information of each pull request and each doc file -
githubSecretKey: the secret key GitHub uses to sign webhook payloads -
githubToken: GitHub API access token. Be sure to keep it private and safe! -
githubUsername: username of the owner of the GitHub repository -
githubRepo: name of the GitHub repository -
pagureSecretKey: the secret key Pagure uses to sign webhook payloads -
pagureToken: Pagure API access token. Be sure to keep it private and safe! -
pagureRepo: name of the Pagure repository -
ciServer: URL (not the IP address or domain name) to the CI preview server -
ciRepoPath: path to the directory at which the toolchain stores the built previews
- git clone the repository on GitHub
- add the git repository on Pagure as remote
pagure - git push to
pagureto ensure the three repos are synced
- create a folder at the path specified in config.ciRepoPath
- Start HTTP server on that folder
python3 database_init.py
nohup python3 github.py &
nohup python3 pagure.py &