Skip to content

Commit d5413d2

Browse files
committed
chore: wip
1 parent b5af548 commit d5413d2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

storage/framework/core/logging/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export async function writeToLogFile(message: string) {
1313
const formattedMessage = `[${new Date().toISOString()}] ${message}\n`
1414

1515
try {
16-
const logFilePath = config.logger.logsPath ?? 'storage/logs/stacks.log'
16+
const logFilePath = config.logging.logsPath ?? 'storage/logs/stacks.log'
1717

1818
try {
1919
// Check if the file exists

storage/framework/server/build.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import process from 'node:process'
2-
import { log, runCommand } from '@stacksjs/cli'
2+
import { log, runCommand, runCommandSync } from '@stacksjs/cli'
33
import { cloud } from '@stacksjs/config'
44
import { userServerPath } from '@stacksjs/path'
55
import { path } from '@stacksjs/path'
@@ -14,11 +14,11 @@ async function main() {
1414
})
1515

1616
// if stacks-container is running, stop it
17-
const stacksContainer = await runCommand(`docker ps -a --filter name=stacks-container --format "{{.ID}}"`)
17+
const stacksContainer = await runCommandSync(`docker ps -a --filter name=stacks-server --format "{{.ID}}"`)
1818

1919
if (stacksContainer) {
2020
log.info('Stopping stacks-server container...', { styled: false })
21-
await runCommand(`docker stop ${stacksContainer}`)
21+
await runCommand(`docker stop stacks-server`)
2222
log.info('Stopped stacks-server container', { styled: false })
2323
}
2424

0 commit comments

Comments
 (0)