Skip to content

Commit 5e7fa36

Browse files
committed
chore: wip
1 parent b2af58d commit 5e7fa36

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

storage/framework/core/actions/src/deploy/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ await runCommand('bun build.ts', {
3131
})
3232

3333
await runCommand('bun zip.ts', {
34-
cwd: p.cloudPath(),
34+
cwd: p.corePath('cloud'),
3535
})
3636

3737
log.info('Preparing Deployment...')

storage/framework/core/cloud/src/cloud/compute.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class ComputeStack {
5656
const container = this.taskDefinition.addContainer('WebServerContainer', {
5757
containerName: `${props.appName}-${props.appEnv}-api`,
5858
// image: ecs.ContainerImage.fromDockerImageAsset(assetImage),
59-
image: ecs.ContainerImage.fromAsset(p.frameworkCloudPath()),
59+
image: ecs.ContainerImage.fromAsset(p.frameworkPath('server')),
6060
logging: new ecs.AwsLogDriver({
6161
streamPrefix: `${props.appName}-${props.appEnv}-web-server-logs`,
6262
logGroup: new LogGroup(scope, 'StacksApiLogs', {

storage/framework/core/cloud/src/cloud/docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class DocsStack {
2828
description: 'The Stacks Origin Request function that prettifies URLs',
2929
runtime: lambda.Runtime.NODEJS_18_X,
3030
handler: 'dist/origin-request.handler',
31-
code: lambda.Code.fromAsset(p.frameworkCloudPath('dist.zip'), {
31+
code: lambda.Code.fromAsset(p.cloudPath('dist.zip'), {
3232
assetHash: originRequestFunctionHash(),
3333
assetHashType: AssetHashType.CUSTOM,
3434
}),

storage/framework/core/cloud/src/cloud/queue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class QueueStack {
4747
for (const ormFile of ormActionFiles) {
4848
if (!ormFile.endsWith('.ts')) continue
4949

50-
const ormActionPath = path.builtUserActionsPath(ormFile)
50+
const ormActionPath = path.builtUserActionsPath(`src/${ormFile}`)
5151

5252
// Await the loading of the job module
5353
const ormAction = await this.loadModule(ormActionPath)

storage/framework/core/utils/src/clean.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ export async function cleanProject() {
1111
await $`rm -rf ${p.frameworkPath('**/node_modules')}`
1212
await $`rm -rf ${p.frameworkCloudPath('cdk.out/')}`
1313
await $`rm -rf ${p.frameworkCloudPath('cdk.context.json')}`
14-
await $`rm -rf ${p.frameworkCloudPath('dist.zip')}`
14+
await $`rm -rf ${p.cloudPath('dist.zip')}`
1515
}

storage/framework/server/src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import process from 'node:process'
22
import { log, runCommand } from '@stacksjs/cli'
33
import { app } from '@stacksjs/config'
4-
import { frameworkCloudPath, frameworkPath, projectPath } from '@stacksjs/path'
4+
import { cloudPath, frameworkCloudPath, frameworkPath, projectPath } from '@stacksjs/path'
55
import { hasFiles } from '@stacksjs/storage'
66
import { slug } from '@stacksjs/strings'
77
import { $ } from 'bun'
@@ -45,7 +45,7 @@ export async function buildDockerImage() {
4545
log.success('Deleted old cdk.context.json')
4646

4747
log.info('Deleting old dist.zip file...')
48-
await runCommand(`rm -rf ${frameworkCloudPath('dist.zip')}`)
48+
await runCommand(`rm -rf ${cloudPath('dist.zip')}`)
4949
log.success('Deleted old dist.zip')
5050

5151
log.info('Deleting .DS_Store files...')

0 commit comments

Comments
 (0)