Skip to content

Commit 07ab311

Browse files
committed
chore: wip
1 parent 362a92c commit 07ab311

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

storage/framework/server/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ app
55
config
66
docs
77
routes
8+
storage
89
env.ts

storage/framework/server/build.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ await runCommand(`cp -r ${projectPath('app/Actions')} ${frameworkPath('server/Ac
5656
cwd: frameworkPath('server'),
5757
})
5858

59+
await runCommand(`rm -rf ${frameworkPath('server/storage')}`, {
60+
cwd: frameworkPath('server'),
61+
})
62+
await runCommand(`cp -r ${projectPath('storage')} ${frameworkPath('server/storage')}`, {
63+
cwd: frameworkPath('server'),
64+
})
65+
5966
if (!app.name) {
6067
log.error('Please provide a name for your app in your config file')
6168
process.exit(1)

storage/framework/server/dev

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/sh
2+
3+
# Get the absolute path to the directory containing this script
4+
SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
5+
6+
# Assuming the project directories are three levels up from the script
7+
PROJECT_ROOT=$(cd "$SCRIPT_DIR/../../../" && pwd)
8+
9+
# Construct the absolute paths
10+
ACTIONS_DIR="$PROJECT_ROOT/app/Actions"
11+
APP_DIR="$PROJECT_ROOT/app"
12+
CONFIG_DIR="$PROJECT_ROOT/config"
13+
DOCS_DIR="$PROJECT_ROOT/docs"
14+
ROUTES_DIR="$PROJECT_ROOT/routes"
15+
STORAGE_DIR="$PROJECT_ROOT/storage"
16+
STORAGE_DIR="/mnt/efs" # Pointing directly to the EFS mount on the host
17+
18+
docker run -p 3000:3000 \
19+
-v "$ACTIONS_DIR:/usr/src/app/Actions" \
20+
-v "$APP_DIR:/usr/src/app/app" \
21+
-v "$CONFIG_DIR:/usr/src/app/config" \
22+
-v "$DOCS_DIR:/usr/src/app/docs" \
23+
-v "$ROUTES_DIR:/usr/src/app/routes" \
24+
-v "$STORAGE_DIR:/usr/src/app/storage" \
25+
stacks

storage/framework/server/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"type": "module",
44
"version": "0.58.56",
55
"scripts": {
6+
"dev": "./dev",
67
"build": "bun build.ts"
78
},
89
"dependencies": {

0 commit comments

Comments
 (0)