Skip to content

Commit

Permalink
fix(env): unpacking the archive during deployment to the specified fo…
Browse files Browse the repository at this point in the history
…lder
  • Loading branch information
varrcan committed Dec 7, 2022
1 parent 816f522 commit d53e630
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/varrcan/dl/helper"
)

var version = "0.5.1"
var version = "0.5.2"

func main() {
pterm.ThemeDefault.SecondaryStyle = pterm.Style{pterm.FgDefault, pterm.BgDefault}
Expand Down
9 changes: 7 additions & 2 deletions project/deploy_files.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,13 @@ func ExtractArchive(ctx context.Context, path string) error {
// BitrixAccess Change bitrix database accesses
func (a *CallMethod) BitrixAccess() {
localPath := Env.GetString("PWD")
settingsFile := filepath.Join(localPath, "bitrix", ".settings.php")
dbconnFile := filepath.Join(localPath, "bitrix", "php_interface", "dbconn.php")
backPath := Env.GetString("BACKEND_ROOT")
destinationPath := localPath
if len(backPath) > 0 {
destinationPath = filepath.Join(localPath, backPath)
}
settingsFile := filepath.Join(destinationPath, "bitrix", ".settings.php")
dbconnFile := filepath.Join(destinationPath, "bitrix", "php_interface", "dbconn.php")

mysqlDB := Env.GetString("MYSQL_DATABASE")
mysqlUser := Env.GetString("MYSQL_USER")
Expand Down

0 comments on commit d53e630

Please sign in to comment.