File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export async function writeToLogFile(message: string) {
13
13
const formattedMessage = `[${ new Date ( ) . toISOString ( ) } ] ${ message } \n`
14
14
15
15
try {
16
- const logFilePath = config . logger . logsPath ?? 'storage/logs/stacks.log'
16
+ const logFilePath = config . logging . logsPath ?? 'storage/logs/stacks.log'
17
17
18
18
try {
19
19
// Check if the file exists
Original file line number Diff line number Diff line change 1
1
import process from 'node:process'
2
- import { log , runCommand } from '@stacksjs/cli'
2
+ import { log , runCommand , runCommandSync } from '@stacksjs/cli'
3
3
import { cloud } from '@stacksjs/config'
4
4
import { userServerPath } from '@stacksjs/path'
5
5
import { path } from '@stacksjs/path'
@@ -14,11 +14,11 @@ async function main() {
14
14
} )
15
15
16
16
// 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}}"` )
18
18
19
19
if ( stacksContainer ) {
20
20
log . info ( 'Stopping stacks-server container...' , { styled : false } )
21
- await runCommand ( `docker stop ${ stacksContainer } ` )
21
+ await runCommand ( `docker stop stacks-server ` )
22
22
log . info ( 'Stopped stacks-server container' , { styled : false } )
23
23
}
24
24
You can’t perform that action at this time.
0 commit comments