feat: Commit due to moving to nas

This commit is contained in:
2024-11-07 14:31:02 -05:00
parent 7122fc818b
commit 19b2eb42c5
6 changed files with 30 additions and 6 deletions

1
.gitignore vendored
View File

@@ -9,3 +9,4 @@ DerivedData/
.topics
mqtt_password.txt
.env
.smbdelete*

View File

@@ -10,6 +10,9 @@ bootstrap: bootstrap-env bootstrap-topics
build:
@swift build
clean:
rm -rf .build
run:
@swift run dewPoint-controller
@@ -22,3 +25,4 @@ stop-mosquitto:
test-docker:
@docker-compose run -i test
@docker-compose kill mosquitto-test
@docker-compose rm -f

View File

@@ -41,11 +41,10 @@ extension Client {
}
import Logging
import NIOTransportServices
import EnvVars
public class AsyncClient {
//public static let eventLoopGroup = NIOTSEventLoopGroup()
public static let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
public let client: MQTTClient
public private(set) var shuttingDown: Bool

View File

@@ -21,6 +21,7 @@ var environment = try bootstrap(eventLoopGroup: eventLoopGroup, logger: logger,
// Set the log level to info only in production mode.
if environment.envVars.appEnv == .production {
logger.debug("Updating logging level to info.")
logger.logLevel = .info
}

19
buildServer.json Executable file
View File

@@ -0,0 +1,19 @@
{
"name": "xcode build server",
"version": "0.2",
"bspVersion": "2.0",
"languages": [
"c",
"cpp",
"objective-c",
"objective-cpp",
"swift"
],
"argv": [
"/opt/homebrew/bin/xcode-build-server"
],
"workspace": "/Volumes/michael/Repos/github.com/hvac-iot/swift-mqtt-dewPoint/.swiftpm/xcode/package.xcworkspace",
"build_root": "/Volumes/michael/Repos/github.com",
"scheme": "dewPoint-controller-Package",
"kind": "xcode"
}

View File

@@ -1,4 +1,4 @@
# run this with docker-compose -f docker/docker-compose.yml run test
# run this with docker-compose run test
services:
server:
image: swift-mqtt-dewpoint:latest
@@ -6,7 +6,7 @@ services:
env_file: .env
test:
image: swift:latest
image: swift:5.10
#build:
#context: ./
platform: linux/amd64