...
This commit is contained in:
@@ -2,33 +2,14 @@
|
||||
|
||||
import freeflowuniverse.herolib.installers.infra.gitea as gitea_installer
|
||||
|
||||
// First of all, we need to set the gitea configuration
|
||||
// heroscript := "
|
||||
// !!gitea.configure
|
||||
// name:'default'
|
||||
// version:'1.22.6'
|
||||
// path: '/var/lib/git'
|
||||
// passwd: '12345678'
|
||||
// postgresql_name: 'default'
|
||||
// mail_from: 'git@meet.tf'
|
||||
// smtp_addr: 'smtp-relay.brevo.com'
|
||||
// smtp_login: 'admin'
|
||||
// smtp_port: 587
|
||||
// smtp_passwd: '12345678'
|
||||
// domain: 'meet.tf'
|
||||
// jwt_secret: ''
|
||||
// lfs_jwt_secret: ''
|
||||
// internal_token: ''
|
||||
// secret_key: ''
|
||||
// "
|
||||
|
||||
// gitea_installer.play(
|
||||
// name: 'default'
|
||||
// heroscript: heroscript
|
||||
// )!
|
||||
mut installer:= gitea_installer.get(name:'test')!
|
||||
|
||||
// Then we need to get an instace of the installer and call the install
|
||||
mut gitea := gitea_installer.get()!
|
||||
// println('gitea configs: ${gitea}')
|
||||
gitea.install()!
|
||||
gitea.start()!
|
||||
//if you want to configure using heroscript
|
||||
gitea_installer.play(heroscript:"
|
||||
!!gitea.configure name:test
|
||||
passwd:'something'
|
||||
domain: 'docs.info.com'
|
||||
")!
|
||||
|
||||
installer.start()!
|
||||
|
||||
Reference in New Issue
Block a user