Before we start Please prepare this requirements
Master server
- Install paramiko python package (pip install paramiko)
- Upload (sadeem_server_git_manager) to your odoo installation addons directory
- Restart your odoo service
Install module
- Enable developer mode on - Go to settings and navigate down then press Activate the developer mode
- Go to Apps menu and press Update Apps List Then press Update
- Search for "sadeem_server_git_manager" then click Activate/Install
- After install module give your user required permission for managing Repositories to servers manager module
Configure Module
After install module successfully and get required permission refresh page to see new installed module
1- Open module menu
Add your first server
Go to >> Servers Menu Click new button to create server
- Confirm Server
- Cancel Server
- Server Name
- Server IP
- SSh Username
- SSH Port
- Run commands on this server with "sudo"
- Default restart service command, ex service odoo restart
- Default addons directory
- Server Country
- Server Country State
- Server Password if you use password
- Server Key if you use key to connect
- Reset to draft
- Cancel Server
- Install requirements
- Server state
Add your first Git Account
Go to >> Git Accounts Menu Click new button to create account
- Account Username
- Access token
- Notes
Open you github account and under settings open Developer settings then Personal Access token
Type your notes and choose expiration period
And choose full repo permissions to be able to access private repositories.
Add your first Repository
Go to >> Git Accounts Menu Click new button to create Repository
- Repositories Menu
- Repostory Name
- Github account who is have access to this repository
- Branch
- Enable queue job this option is for large repositories and big number of server
- last commit pulled from this repository
- Last commit message
- last commit By
- Server lines add here all server you want to link to this repository
- Repository webhook state
- This option is to restart service on this server automatically on new commits
- This mean last commit on this server is equal to last commit on this repository
- Unlink webhook
- This repository webhook is unlinked
- This repository webhook is linked