diff --git a/apps/infra/lib/ide-stack.ts b/apps/infra/lib/ide-stack.ts index 068f331..d8bc041 100644 --- a/apps/infra/lib/ide-stack.ts +++ b/apps/infra/lib/ide-stack.ts @@ -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"), }, @@ -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"), }, @@ -339,6 +341,9 @@ export class IDEStack extends cdk.Stack { containerPort: 3000, }, ], + logging: ecs.LogDrivers.awsLogs({ + streamPrefix: "environment", + }), }); envContainer.addMountPoints({ diff --git a/apps/web/next.config.ts b/apps/web/next.config.ts index aaae215..d7504c4 100644 --- a/apps/web/next.config.ts +++ b/apps/web/next.config.ts @@ -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: "/**", }, ], }, @@ -26,6 +41,6 @@ const nextConfig: NextConfig = { typescript: { ignoreBuildErrors: true, }, -}; +} -export default nextConfig; +export default nextConfig \ No newline at end of file diff --git a/projects/learning-python/day-1/README.md b/projects/learning-python/day-1/README.md new file mode 100644 index 0000000..07166d7 --- /dev/null +++ b/projects/learning-python/day-1/README.md @@ -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. \ No newline at end of file diff --git a/projects/learning-python/day-1/hello_world.py b/projects/learning-python/day-1/hello_world.py new file mode 100644 index 0000000..4648e70 --- /dev/null +++ b/projects/learning-python/day-1/hello_world.py @@ -0,0 +1 @@ +print("Hello, World!") \ No newline at end of file diff --git a/turbo.json b/turbo.json index 9a79559..e660c5a 100644 --- a/turbo.json +++ b/turbo.json @@ -7,7 +7,12 @@ "inputs": ["$TURBO_DEFAULT$", ".env*"], "outputs": [] }, + "ide#deploy": { + "cache": false, + "outputs": [] + }, "infra#deploy": { + "dependsOn": ["^deploy"], "passThroughEnv": ["AWS_*"], "env": [ "CDK_DEFAULT_ACCOUNT",