File tree Expand file tree Collapse file tree 4 files changed +34
-0
lines changed Expand file tree Collapse file tree 4 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 5
5
config
6
6
docs
7
7
routes
8
+ storage
8
9
env.ts
Original file line number Diff line number Diff line change @@ -56,6 +56,13 @@ await runCommand(`cp -r ${projectPath('app/Actions')} ${frameworkPath('server/Ac
56
56
cwd : frameworkPath ( 'server' ) ,
57
57
} )
58
58
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
+
59
66
if ( ! app . name ) {
60
67
log . error ( 'Please provide a name for your app in your config file' )
61
68
process . exit ( 1 )
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 3
3
"type" : " module" ,
4
4
"version" : " 0.58.56" ,
5
5
"scripts" : {
6
+ "dev" : " ./dev" ,
6
7
"build" : " bun build.ts"
7
8
},
8
9
"dependencies" : {
You can’t perform that action at this time.
0 commit comments