Skip to content

Commit ec870bb

Browse files
committed
remove internal port
1 parent e5a7e0f commit ec870bb

File tree

9 files changed

+22
-14
lines changed

9 files changed

+22
-14
lines changed

helpers/python.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -548,9 +548,4 @@ export const installPythonTemplate = async ({
548548
if (postInstallAction === "runApp" || postInstallAction === "dependencies") {
549549
installPythonDependencies();
550550
}
551-
552-
// Copy deployment files for python
553-
await copy("**", root, {
554-
cwd: path.join(compPath, "deployments", "python"),
555-
});
556551
};

helpers/typescript.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,6 @@ export const installTSTemplate = async ({
247247
) {
248248
await installTSDependencies(packageJson, packageManager, isOnline);
249249
}
250-
251-
// Copy deployment files for typescript
252-
await copy("**", root, {
253-
cwd: path.join(compPath, "deployments", "typescript"),
254-
});
255250
};
256251

257252
async function updatePackageJson({

templates/components/agents/python/blog/README-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fly login
6868
Then, run this command and follow the prompts to deploy the app.:
6969

7070
```shell
71-
fly launch --internal-port 8000
71+
fly launch
7272
```
7373

7474
- Note: Make sure all the needed environment variables in the [.env](.env) file (e.g. `OPENAI_API_KEY`) are set.

templates/components/agents/python/financial_report/README-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ fly login
5656
Then, run this command and follow the prompts to deploy the app.:
5757

5858
```shell
59-
fly launch --internal-port 8000
59+
fly launch
6060
```
6161

6262
- Note: Make sure all the needed environment variables in the [.env](.env) file (e.g. `OPENAI_API_KEY`) are set.

templates/components/agents/python/form_filling/README-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fly login
6262
Then, run this command and follow the prompts to deploy the app.:
6363

6464
```shell
65-
fly launch --internal-port 8000
65+
fly launch
6666
```
6767

6868
- Note: Make sure all the needed environment variables in the [.env](.env) file (e.g. `OPENAI_API_KEY`) are set.
File renamed without changes.

templates/types/streaming/fastapi/DEPLOY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fly login
1111
Then, run this command and follow the prompts to deploy the app.:
1212

1313
```shell
14-
fly launch --internal-port 8000
14+
fly launch
1515
```
1616

1717
And to open the app in your browser:

templates/components/deployments/python/Dockerfile renamed to templates/types/streaming/fastapi/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,6 @@ COPY . .
4545
# Remove frontend code
4646
RUN rm -rf .frontend
4747

48+
EXPOSE 8000
49+
4850
CMD ["poetry", "run", "prod"]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM node:20-alpine as build
2+
3+
WORKDIR /app
4+
5+
# Install dependencies
6+
COPY package.json package-lock.* ./
7+
RUN npm install
8+
9+
# Build the application
10+
COPY . .
11+
RUN npm run build
12+
13+
# ====================================
14+
FROM build as release
15+
16+
CMD ["npm", "run", "start"]

0 commit comments

Comments
 (0)