Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Supported frameworks and CMS: Bitrix, Laravel, WordPress, and many others with m
- Portainer - docker container management system
- Does not require root access (when installing the executable file in the user's directory)
- Accessing sites from the browser via .localhost or .nip.io
- Mapping multiple domains to custom document roots via `HOSTS_MAP`
- Ability to add custom docker-compose.yaml files to DL configuration

## Dependencies
Expand Down
10 changes: 10 additions & 0 deletions command/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,14 @@ func showProjectInfo() {
}

_ = pterm.DefaultPanel.WithPanels(panels).WithPadding(5).Render()

mappings := project.HostMappings()
if len(mappings) > 0 {
table := pterm.TableData{{"Host", "Document root"}}
for _, mapping := range mappings {
table = append(table, []string{mapping.Host, mapping.DocumentRoot})
}
pterm.Println()
_ = pterm.DefaultTable.WithHasHeader().WithData(table).Render()
}
}
8 changes: 5 additions & 3 deletions project/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ func LoadEnv() {
os.Exit(1)
}

setDefaultEnv()
setComposeFiles()
setDefaultEnv()
setComposeFiles()
configureVirtualHosts()
}

// setNetworkName Set network name from project name
Expand Down Expand Up @@ -93,7 +94,8 @@ func setDefaultEnv() {

Env.SetDefault("REDIS", false)
Env.SetDefault("REDIS_PASSWORD", "pass")
Env.SetDefault("MEMCACHED", false)
Env.SetDefault("MEMCACHED", false)
Env.SetDefault("TRAEFIK_EXTRA_RULE", "")

host := getLocalIP()

Expand Down
Loading