1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-07 03:50:08 +02:00

👌 Re-enable debugger, site loading

This commit is contained in:
2022-03-20 15:07:34 +01:00
parent 1d74e1536c
commit 2cfc5731fb
2 changed files with 9 additions and 7 deletions

View File

@ -42,16 +42,15 @@
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = ""
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
enableGPUValidationMode = "1"
allowLocationSimulation = "YES"
consoleMode = "1">
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
@ -66,7 +65,7 @@
<EnvironmentVariable
key = "PHPMON_MARKETING_MODE"
value = "YES"
isEnabled = "YES">
isEnabled = "NO">
</EnvironmentVariable>
</EnvironmentVariables>
</LaunchAction>

View File

@ -73,7 +73,7 @@ class ValetSiteScanner: SiteScanner
.contentsOfDirectory(atPath: path)
return entries.forEach {
if let site = self.resolveSite(path: "\($0)/\(path))") {
if let site = self.resolveSite(path: "\(path)/\($0))") {
sites.append(site)
}
}
@ -91,7 +91,10 @@ class ValetSiteScanner: SiteScanner
let tld = Valet.shared.config.tld
// See if the file is a symlink, if so, resolve it
let attrs = try! FileManager.default.attributesOfItem(atPath: path)
guard let attrs = try? FileManager.default.attributesOfItem(atPath: path) else {
Log.warn("Could not parse the site: \(path), skipping!")
return nil
}
// We can also determine whether the thing at the path is a directory, too
let type = attrs[FileAttributeKey.type] as! FileAttributeType