Skip to content

Commit 17c5b11

Browse files
committed
chore: wip
1 parent 2cf22c0 commit 17c5b11

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

storage/framework/server/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
bootstrap
22
*bun-build
33
app
4-
routes
54
config
5+
docs
6+
routes
67
env.ts

storage/framework/server/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ RUN cd /temp/prod && bun install
2727
FROM base AS prerelease
2828
COPY --from=install /temp/dev/node_modules ./node_modules
2929
COPY ./app ./app
30+
COPY ./docs ./docs
3031
COPY ./config ./config
3132
COPY ./routes ./routes
3233
COPY ./index.ts ./index.ts
@@ -47,6 +48,7 @@ COPY --from=prerelease /usr/src/app/package.json ./package.json
4748
COPY --from=prerelease /usr/src/app/routes ./routes
4849
COPY --from=prerelease /usr/src/app/config ./config
4950
COPY --from=prerelease /usr/src/app/app ./app
51+
COPY --from=prerelease /usr/src/app/docs ./docs
5052

5153
# run the app
5254
USER bun

storage/framework/server/build.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ await runCommand(`cp -r ${projectPath('app')} ${frameworkPath('server/app')}`, {
4242
cwd: frameworkPath('server'),
4343
})
4444

45+
await runCommand(`rm -rf ${frameworkPath('server/docs')}`, {
46+
cwd: frameworkPath('server'),
47+
})
48+
await runCommand(`cp -r ${projectPath('docs')} ${frameworkPath('server/docs')}`, {
49+
cwd: frameworkPath('server'),
50+
})
51+
4552
if (!app.name) {
4653
log.error('Please provide a name for your app in your config file')
4754
process.exit(1)

0 commit comments

Comments
 (0)