File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
import process from 'node:process'
2
2
import { log } from '@stacksjs/cli'
3
3
import { cloud } from '@stacksjs/config'
4
- import { buildServer , useCustomOrDefaultServerConfig } from './src/build '
4
+ import { buildServer , useCustomOrDefaultServerConfig } from './src/utils '
5
5
6
6
async function main ( ) {
7
7
await useCustomOrDefaultServerConfig ( )
Original file line number Diff line number Diff line change @@ -6,14 +6,15 @@ import { hasFiles } from '@stacksjs/storage'
6
6
import { $ } from 'bun'
7
7
8
8
export async function cleanAndCopy ( sourcePath : string , targetPath : string ) {
9
- $ . cwd ( frameworkPath ( 'cloud' ) )
9
+ $ . cwd ( frameworkPath ( 'server' ) )
10
+
10
11
await $ `rm -rf ${ targetPath } `
11
12
await $ `cp -r ${ sourcePath } ${ targetPath } `
12
13
}
13
14
14
15
export async function useCustomOrDefaultServerConfig ( ) {
15
16
if ( hasFiles ( projectPath ( 'server' ) ) ) {
16
- $ . cwd ( frameworkPath ( 'cloud ' ) )
17
+ $ . cwd ( frameworkPath ( 'server ' ) )
17
18
18
19
// if we have a custom server configuration, use it by copying it to the server directory
19
20
await $ `cp -r ../../../server .`
You can’t perform that action at this time.
0 commit comments