Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions apps/infra/lib/ide-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ export class IDEStack extends cdk.Stack {
source: ["aws.ecs"],
detail: {
lastStatus: ["RUNNING"],
desiredStatus: ["RUNNING"],
clusterArn: [ideCluster.clusterArn],
group: events.Match.anythingBut("family:s3-archiver"),
},
Expand Down Expand Up @@ -220,6 +221,7 @@ export class IDEStack extends cdk.Stack {
source: ["aws.ecs"],
detail: {
lastStatus: ["STOPPED"],
desiredStatus: ["STOPPED"],
clusterArn: [ideCluster.clusterArn],
group: events.Match.anythingBut("family:s3-archiver"),
},
Expand Down Expand Up @@ -339,6 +341,9 @@ export class IDEStack extends cdk.Stack {
containerPort: 3000,
},
],
logging: ecs.LogDrivers.awsLogs({
streamPrefix: "environment",
}),
});

envContainer.addMountPoints({
Expand Down
31 changes: 23 additions & 8 deletions apps/web/next.config.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,36 @@
import path from "node:path";
import { fileURLToPath } from "node:url";
import type { NextConfig } from "next";
import path from "node:path"
import { fileURLToPath } from "node:url"
import type { NextConfig } from "next"

const appRoot = path.dirname(fileURLToPath(import.meta.url));
const workspaceRoot = path.join(appRoot, "../..");
const appRoot = path.dirname(fileURLToPath(import.meta.url))
const workspaceRoot = path.join(appRoot, "../..")

const nextConfig: NextConfig = {
/* config options here */
images: {
remotePatterns: [
{
protocol: "https",
hostname: "api.dicebear.com",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "studentide.com",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "avatars.githubusercontent.com",
port: "",
pathname: "/u/**",
},
{
protocol: "https",
hostname: "wsgejjkysw9dngbl.public.blob.vercel-storage.com",
port: "",
pathname: "/**",
},
],
},
Expand All @@ -26,6 +41,6 @@ const nextConfig: NextConfig = {
typescript: {
ignoreBuildErrors: true,
},
};
}

export default nextConfig;
export default nextConfig
18 changes: 18 additions & 0 deletions projects/learning-python/day-1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Learning Python - Day 1

This is a simple tutorial on how to get started with Python. We will cover the basics of Python programming, including variables, data types, and basic syntax.

## Getting Started
Look at the file, `hello_world.py`, and run it using the command line:

```bash
python hello_world.py
```

You should see the output:

```
Hello, World!
```

You just ran your first Python program! This is the traditional "Hello, World!" program that is often used as a first example when learning a new programming language.
1 change: 1 addition & 0 deletions projects/learning-python/day-1/hello_world.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("Hello, World!")
5 changes: 5 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
"inputs": ["$TURBO_DEFAULT$", ".env*"],
"outputs": []
},
"ide#deploy": {
"cache": false,
"outputs": []
},
"infra#deploy": {
"dependsOn": ["^deploy"],
"passThroughEnv": ["AWS_*"],
"env": [
"CDK_DEFAULT_ACCOUNT",
Expand Down