# Angular Source: https://cloudtype.mintlify.app/ko/developers/angular ## 준비 및 확인사항 ### 지원 Node 버전 * **8, 10, 12, 14, 16, 18** * ⚠️ 로컬/테스트 환경과 클라우드타입에서 설정한 Node 버전이 상이한 경우 정상적으로 빌드되지 않을 수 있습니다. ## 대시보드를 통한 생성 ### 1. 템플릿 선택하기 * **[Github 저장소에서 템플릿 보기](https://github.com/cloudtype-examples/react.git)** * 시작하기 페이지의 **언어/플랫폼** 카테고리에 접속 또는 `⌘ + K` 를 사용하여 `Angular` 를 검색하고 `Angular` 템플릿을 클릭하세요.
### 2. 새 저장소(repository) 생성하기 또는 나의 저장소 선택하기 클라우드타입은 기본적으로 사용자 Github 계정의 저장소에 반영된 소스를 배포합니다. * 1️⃣ **배포하려는 저장소가 없다면** ⇒ 클라우드타입이 제공하는 예제 저장소를 사용자의 Github 계정에 생성합니다. * 2️⃣ **배포하려는 저장소가 있다면** ⇒ 클라우드타입에서 배포할 사용자 본인의 저장소를 선택합니다. #### 1️⃣ 배포하려는 저장소가 없는 경우 * 아래의 그림처럼 **비공개 저장소 설정하기** 여부만 선택한 후 `저장소 만들기` 를 클릭하면 사용자의 Github 계정에 해당 템플릿 저장소가 자동으로 생성됩니다.
#### 2️⃣ 배포하려는 저장소가 있는 경우 * Github 계정에 존재하는 저장소를 사용하려는 경우 아래의 화면처럼 여러 저장소 중 배포를 원하는 항목을 선택하세요. 이미 위에서 저장소를 만든 경우 이 부분은 건너뛰어주세요.
* 저장소를 직접 선택한 경우, 빌드 및 시작을 위한 명령어 등 세부 설정이 기본 설정과 다를 수 있습니다. 아래의 그림처럼 빌드 설정의 **설정변경** 버튼을 클릭하고 수정이 필요한 설정사항을 수정해주세요.
### 3. 배포하기 * 위 과정을 마친 후 마지막으로 배포할 리전을 선택하고 `배포하기` 버튼을 클릭하면 배포가 자동으로 진행됩니다.
*** ## CLI 를 통한 생성 ### 1. 사전준비 아래 가이드에 따라 CLI 를 설치하고 로그인을 진행해주세요.
[CLI 설치하기](/ko/developers/cli/install) ### 2. 설정파일 생성 `.cloudtype/app.yaml` 파일을 생성하세요. #### Angular ```yaml theme={null} name: angular app: web options: docbase: /dist nodeversion: 16 spa: true context: git: url: https://github.com/cloudtype-examples/angular.git branch: main preset: angular ``` ### 3. 배포하기 ```sh theme={null} $ ctype apply ``` ## 참고 ### FAQ * [서비스 접속 시 50X 페이지만 뜹니다.](/ko/troubleshooting/common) * [로컬에서는 이상없이 설치되던 패키지가 클라우드타입에서 빌드할 때 정상적으로 설치되지 않습니다.](/ko/troubleshooting/node) * [하나의 Git 원격 저장소에서 두 개 이상의 앱을 배포하고 싶어요.](/ko/troubleshooting/git) * [클라우드타입에서 볼 수 있는 로그뷰 말고 별도의 파일로 로그를 따로 저장하고 싶습니다.](/ko/troubleshooting/common) ### 공식문서 * [Angular Docs](https://angular.io/docs) # API 키 관리 Source: https://cloudtype.mintlify.app/ko/developers/apikey 외부에서 클라우드타입의 API를 활용하고자 할 때 사용되는 인증 정보입니다. API Key로 [Github Actions 등 외부의 CI/CD 도구를 활용하여 배포작업을 진행](/ko/developers/githubactions)할 수 있습니다. *** ### API Key 생성 > 스페이스 설정화면의 인증 페이지에서 API 키를 생성할 수 있습니다. 생성된 API 토큰은 다시 조회할 수 없습니다. # 터미널 접속 Source: https://cloudtype.mintlify.app/ko/developers/cli/attach ## 터미널 접속하기 접속할 컨테이너 ID 를 조회합니다. ```sh theme={null} $ ctype ins Current stage is "@demo/myproject:main" APP ID STATUS STARTED AT EXPOSE node node:node:0 running 2022-01-11 14:40:06 3000 node node:gitsync:0 running 2022-01-11 14:40:06 - ``` 실행중인 애플리케이션의 터미널에 접속하는 방법입니다. 아래 명령은 현재 프로젝트의 `myapp` 애플리케이션에 접속합니다. ```plain theme={null} $ ctype term node node:node:0 root@node:/app# ls -al ``` 배포환경 옵션을 사용하면 다른 프로젝트나 배포환경의 애플리케이션의 터미널에 접속할 수 있습니다. ```sh theme={null} $ ctype term node node:node:0 -t @demo/myproject:dev ``` *** ## 터미널 옵션 1. `--target` 혹은 `-t`
target 옵션으로 현재 배포환경이 아닌 배포환경을 직접 지정할 수 있습니다. ```sh theme={null} $ ctype term node node:node:0 -t @demo/projectname:stage ``` # 배포 Source: https://cloudtype.mintlify.app/ko/developers/cli/deploy ## 설정 파일을 통한 배포 ### 1. 배포파일 작성하기 아래 내용을 `.cloudtype/app.yaml` 파일로 생성하세요. ```yaml theme={null} name: myapp app: node@16 options: git: branch: main url: https://github.com/cloudtype-examples/node-express.git env: - name: NODE_ENV value: production install: npm ci --production ports: 3000 start: npm start ``` ### 2. 배포하기 아래와 같이 인수가 없는 경우 `.cloudtype/app.yaml` 파일을 사용하여 배포됩니다. ```sh theme={null} $ ctype apply 1 apps deployed to @demo/myproject └ app "node" deployed to stage main ``` 배포할 설정 파일을 지정하려는 경우 파일명을 직접 지정할 수 있습니다. ```sh theme={null} $ ctype apply -f myapp.yaml ``` ### 3. 배포 확인 ```sh theme={null} $ ctype ls Current stage is "@demo/myproject:main" NAME APP CREATED UPDATED node node@16 2022-01-11 03:57:37 2022-01-12 20:35:56 ``` *** ## 프리셋 제공하는 플랫폼별 프리셋으로 설정 파일을 생성할 수 있습니다. ### 1. 프리셋 조회 ```sh theme={null} $ ctype presets 58 presets found. NAME DISPLAY NAME EXAMPLE react React https://github.com/cloudtype-examples/react.git vue-2 Vue 2 https://github.com/cloudtype-examples/vue2.git vue-3 Vue 3 https://github.com/cloudtype-examples/vue3.git angular Angular https://github.com/cloudtype-examples/angular.git html HTML https://github.com/cloudtype-examples/html.git gatsby Gatsby https://github.com/cloudtype-examples/gatsby.git svelte Svelte https://github.com/cloudtype-examples/svelte.git astro Astro https://github.com/cloudtype-examples/astro.git lit-element-vite Lit (vite) https://github.com/cloudtype-examples/lit.git preact-vite Preact (vite) https://github.com/cloudtype-examples/preact.git react-vite React (vite) https://github.com/cloudtype-examples/react-vite.git svelte-vite Svelte (vite) https://github.com/cloudtype-examples/svelte-vite.git vanilla-vite VanillaJS (vite) https://github.com/cloudtype-examples/vanilla.git webpack-5 Webpack 5 https://github.com/cloudtype-examples/webpack5.git node Node.js https://github.com/cloudtype-examples/node-express.git next.js-11 Next.js 11 https://github.com/cloudtype-examples/nextjs.git next.js-12 Next.js 12 https://github.com/cloudtype-examples/nextjs12.git next.js Next.js 13 https://github.com/cloudtype-examples/nextjs13.git nuxt.js Nuxt.js https://github.com/cloudtype-examples/nuxtjs.git nest.js NestJS https://github.com/cloudtype-examples/nestjs.git remix Remix https://github.com/cloudtype-examples/remix.git express-graphql GraphQL(express) https://github.com/cloudtype-examples/express-graphql next-prisma Prisma(Next 13) https://github.com/cloudtype-examples/next-prisma.git fastify Fastify https://github.com/cloudtype-examples/fastify.git python-django Python Django https://github.com/cloudtype-examples/python-django.git python-flask Python Flask https://github.com/cloudtype-examples/flask.git python-fastapi Python FastAPI https://github.com/cloudtype-examples/fastapi.git python-streamlit Python Streamlit https://github.com/cloudtype-examples/streamlit.git java-springboot Spring Boot https://github.com/cloudtype-examples/java-springboot.git kotlin Kotlin https://github.com/cloudtype-examples/kotlin.git dotnet .NET https://github.com/cloudtype-examples/dotnet.git golang Go https://github.com/cloudtype-examples/golang.git gin gin https://github.com/cloudtype-examples/gin.git fiber Fiber https://github.com/cloudtype-examples/go-fiber.git deno Deno https://github.com/cloudtype-examples/deno.git php PHP https://github.com/cloudtype-examples/php.git ruby-rails Ruby on Rails https://github.com/cloudtype-examples/ruby-on-rails.git ruby-sinatra Ruby Sinatra https://github.com/cloudtype-examples/ruby-sinatra.git buildpacks Buildpacks https://github.com/cloudtype/example-node-express.git container Container dockerfile Dockerfile https://github.com/cloudtype-examples/dockerfile.git mariadb MariaDB mongo MongoDB postgresql PostgreSQL redis Redis code-server Code Server elasticsearch Elasticsearch kafka Apache Kafka nginx nginx select Select Admin https://github.com/cloudtype/example-select.git discordbot-js Discord Bot(JS) https://github.com/cloudtype-examples/discordbot-js.git discordbot-py Discord Bot(Python) https://github.com/cloudtype-examples/discordbot-py.git slackbot-js Slack Bot(JS) https://github.com/cloudtype-examples/slackbot-js.git slackbot-py Slack Bot(Python) https://github.com/cloudtype-examples/slackbot-py.git ghost ghost jekyll Jekyll https://github.com/cloudtype/example-jekyll.git wordpress Wordpress docusaurus Docusaurus https://github.com/cloudtype-examples/example-docusaurus.git ``` ### 2. 설정 파일 생성하기 원하는 프리셋 이름으로 설정 파일을 생성하세요.
파일을 지정하지 않은 경우 `.cloudtype/app.yaml` 파일로 생성됩니다. ```sh theme={null} $ ctype create node/express Configuration file created. .cloudtype/app.yaml ``` **배포하기** ```sh theme={null} $ ctype apply 1 apps deployed to @demo/myproject └ app "node" deployed to stage main ``` `-f`(`--file`) 옵션을 사용해서 원하는 파일명을 지정할 수 있습니다.
아래 예시는 `config/myapp.yaml` 파일로 생성합니다. ```sh theme={null} $ ctype create node/express -f config/myapp.yaml Configuration file created. config/myapp.yaml ``` **배포하기** ```sh theme={null} $ ctype apply -f config/myapp.yaml 1 apps deployed to @demo/myproject └ app "node" deployed to stage main ``` # 설치 Source: https://cloudtype.mintlify.app/ko/developers/cli/install ale에서 어플리케이션을 관리하는 페이지입니다. ## CLI 설치하기 ### 사전준비 CLI 를 사용하려면 `Node.js` 설치가 필요합니다. Node.js 공식웹사이트 혹은 nvm 을 통해서 Node.js v12 이상을 설치하세요. ```sh theme={null} $ npm i -g @cloudtype/cli ``` ### 로그인 #### username / password ```sh theme={null} $ ctype login # 혹은 $ ctype login -u username -p password ``` #### API key token API Key 발급은 [API Key 발급받기](/ko/developers/apikey) 페이지를 참고하세요. ```sh theme={null} $ ctype login -t API_KEY_TOKEN ``` ### 프로젝트 생성 프로젝트가 없다면 새로운 프로젝트를 생성하세요. ```sh theme={null} $ ctype project create myproject ``` ### 프로젝트 조회 ```sh theme={null} $ ctype projects Current scope is "@demo" NAME CREATED myproject 2022-01-11 03:57:30 ``` ### 현재 프로젝트 및 배포환경 조회 ```sh theme={null} $ ctype use Current stage is @demo/myproject:main on gke-seoul-1 ``` ### 프로젝트 전환 ```sh theme={null} $ ctype use myproject # 배포환경을 지정하지 않으면 기본 배포환경(main)으로 전환됩니다. # 혹은 $ ctype use myproject:main ``` ### 배포환경 전환 ```sh theme={null} $ ctype use :development ``` ### 팀 스코프 지정 ```sh theme={null} $ ctype use @teamname/myproject:main ``` # 로그뷰 Source: https://cloudtype.mintlify.app/ko/developers/cli/log ## 로그 조회하기 로그 조회할 컨테이너 ID 를 조회합니다. ```sh theme={null} $ ctype ins Current stage is "@demo/myproject:main" APP ID STATUS STARTED AT EXPOSE node node:node:0 running 2022-01-11 14:40:06 3000 node node:gitsync:0 running 2022-01-11 14:40:06 - ``` 실행중인 애플리케이션의 실시간 로그를 조회하는 방법입니다. 아래 명령은 현재 프로젝트의 `myapp` 애플리케이션 로그를 조회합니다. ```sh theme={null} $ ctype logs node node:node:0 node@16 is starting... no pre-install command ... ``` 배포환경 옵션을 사용하면 다른 프로젝트나 배포환경의 애플리케이션의 로그를 조회할 수 있습니다. ```sh theme={null} $ ctype logs node node:node:0 -t @demo/myproject:dev ``` *** ## 로그 옵션 1. `--tailLines` 혹은 `-l`
tailLines 옵션을 사용하면 마지막 로그로부터 이전의 라인부터 조회할 수 있습니다. ```sh theme={null} $ ctype logs node node:node:0 -l 10 ``` 2. `--timestamps` 혹은 `-m`
timestamp 옵션을 사용하면 로그 시간을 함께 볼 수 있습니다. ```sh theme={null} $ ctype logs node node:node:0 -m ``` 3. `--target` 혹은 `-t`
target 옵션으로 현재 배포환경이 아닌 배포환경을 직접 지정할 수 있습니다. ```sh theme={null} $ ctype logs node node:node:0 -t @demo/projectname:stage ``` # 서비스 간 통신 Source: https://cloudtype.mintlify.app/ko/developers/connect > cloudtype은 데이터베이스, 메세징 큐 등의 서비스를 다른 서비스와 연동하기 위해 필요한 호스트명과 포트를 제공합니다. 용도에 따라 동일 배포환경 내에서 참조하는 것과 외부에서 참조하는 것으로 나뉩니다. ## 접속 정보 조회 > 서비스 상세 페이지의 리소스탭에서 두 가지 유형의 엔드포인트를 확인할 수 있습니다: * 인그레스: 외부 서비스와의 연결을 위한 \[hostname:port] * 내부 연결: 같은 배포환경의 서비스 간 통신을 위한 \[hostname:port] 같은 배포환경의 서비스간 통신에는 서비스 이름이 호스트네임으로 사용됩니다. ## 내부 서비스 간 통신 > 같은 화면에 있는 서비스 사이에는 내부 연결 주소인 **서비스 이름과 포트번호로 통신**할 수 있습니다. 같은 화면에 있는 서비스는 같은 배포환경에 속합니다. 배포환경 별로 격리된 네트워크가 구성되기 때문에 방화벽 규칙 적용이 필요없고, 통신 지연 현상이 최소화됩니다. cloudtype의 작업단위인 스페이스, 프로젝트, **배포환경**, 서비스에 관한 내용은 [배포환경 페이지](/ko/developers/environment)를 참고하세요. ## 다른 배포환경 또는 외부 서비스 > 서비스 상세페이지 **리소스탭의 인그레스 정보(호스트네임 : 포트번호)로** 다른 배포환경 또는 외부의 서비스와 통신할 수 있습니다. 이 경우, 연결하려는 데이터베이스가 속한 배포환경의 설정탭에서 **TCP 외부접속을 허용해야 합니다.** TCP 접속 허용 설정은 배포환경 단위로 가능하며, 설정한 배포환경에 속한 서비스 전체에 적용됩니다. 서비스 단위의 개별 설정은 불가합니다. 인그레스 주소를 사용해 로컬 컴퓨터의 관리툴로 데이터베이스에 TCP 접속할 수 있습니다. > 접속정보를 입력한 후, 이어지는 화면에서 배포시 설정한 Root Password를 입력하세요. [Root Password는 배포환경 설정탭의 시크릿 항목](/ko/developers/database#3-2-root-password)에서 조회할 수 있습니다. [MySQL Workbench Download](https://dev.mysql.com/downloads/workbench/) 관리 툴로 데이터베이스에 TCP 접속 시 배포환경 설정탭에서 TCP 외부접속을 허용하도록 설정해야 합니다. > Connection 탭에서 접속정보와 배포할 때 설정한 Username(기본값 **root**), Root Password를 입력하세요. [Root Password는 배포환경 설정탭의 시크릿 항목](/ko/developers/database#3-2-root-password)에서 조회할 수 있습니다. [pgAdmin Download](https://www.pgadmin.org/download/) 관리 툴로 데이터베이스에 TCP 접속 시 배포환경 설정탭에서 TCP 외부접속을 허용하도록 설정해야 합니다. > `New Connection` 클릭 후, **Advanced Connection Options** 하단부의 General 탭에서 **포트번호까지 포함한 호스트네임**을 Host 필드에 입력하세요. > Authentication 탭에서 배포할 때 설정한 Username(기본값 **admin**), Root Password를 입력하세요. [Root Password는 배포환경 설정탭의 시크릿 항목](/ko/developers/database#3-2-root-password)에서 조회할 수 있습니다. [MongoDB Compass Download](https://www.mongodb.com/try/download/compass) 관리 툴로 데이터베이스에 TCP 접속 시 배포환경 설정탭에서 TCP 외부접속을 허용하도록 설정해야 합니다. > `Add Redis Database` 클릭 후, 접속정보를 입력해주세요. [Root Password는 배포환경 설정탭의 시크릿 항목](/ko/developers/database#3-2-root-password)에서 조회할 수 있습니다. [Redis Insignt Download](https://redis.io/insight/) 관리 툴로 데이터베이스에 TCP 접속 시 배포환경 설정탭에서 TCP 외부접속을 허용하도록 설정해야 합니다. ## 아웃바운드 IP > 클라우드타입에서 배포한 서비스와 외부의 DB를 연동하여 사용하려는 경우, 설정탭의 배포환경 정보 메뉴에서 클라우드타입의 아웃바운드 IP를 조회하여 활용할 수 있습니다. 공용으로 사용되는 IP로 새로 컨테이너가 재생성되거나 프로젝트를 새로 생성해도 아웃바운드 IP는 항상 같으며 대시보드에 표시된 IP 중 하나가 사용됩니다. 외부서비스에 화이트리스트 IP로 등록할 경우, 대시보드에 표시되는 IP를 모두 등록해주세요. # Container Image Source: https://cloudtype.mintlify.app/ko/developers/container > 대시보드의 또는 `⌘ + K` 로 생성되는 배포창에서 검색한 **Container 템플릿**으로 container image를 배포할 수 있습니다. [이미지 레지스트리 연결하기 페이지](/ko/developers/registry)를 참고해 저장소 연결 후 프라이빗 저장소의 커스텀 이미지를 배포할 수 있습니다. ## 설정과 배포 > Container 템플릿 선택 후 이어지는 배포 설정창에서 필요한 설정값들을 입력한 후 배포하세요. > 이미지 주소와 태그를 `:`와 함께 입력하세요. > 이미지 배포를 위한 설정값을 입력해주세요. * **uid** : 컨테이너에서 프로세스를 실행하는 사용자의 고유한 식별자(기본값 1000) * **gid** : 컨테이너에서 프로세스가 속한 그룹의 고유한 식별자(기본값 1000) * **Update strategy** * **Rolling Update** : 새로운 버전의 서비스 배포 시점에 기존 파드 종료, 노드 가용자원 확보 필요 * **Recreate** : 모든 서비스 종료후 새로운 버전의 서비스 생성 및 구동, 다운타임 발생 * **Shell** : 컨테이너가 실행된 후 실행할 쉘(sh, bash, zsh 등) * **리소스 유형** : [구독 리소스와 프리티어 리소스](/ko/developers/resource) 중 선택 * **CPU** : 서비스가 사용할 수 있는 vCPU 리소스의 최대값으로, '최소' 선택 시 0.1 vCPU 사용 * **메모리** : 서비스가 사용할 수 있는 메모리 리소스의 최대값 * [동시실행(레플리카)](/ko/developers/replica) : 설정한 수만큼 서비스가 수평확장되어 부하 분산 및 안정성 확보 * **배포** : `배포하기` 클릭 # 데이터베이스 Source: https://cloudtype.mintlify.app/ko/developers/database > cloudtype에서 데이터베이스를 배포하고, 배포된 DB와 **다른 서비스와의 통신** 및 DB 관리 도구로 **TCP연결**하는 방법을 다룹니다. 배포한 데이터베이스를 중지하거나 재배포할 경우 데이터가 보존되지만, **데이터베이스 서비스 삭제 시 데이터도 영구적으로 제거됩니다.** *** ## 데이터베이스 배포하기 > 대시보드의 또는 `⌘ + K` 로 생성되는 배포창에서, 배포할 **database**를 선택한 후 표시되는 설정 필드값을 입력하세요. > 버전, Root Password 등의 설정값을 정할 수 있습니다. 서비스 별로 표시되는 **기본 설정값** 항목이 다릅니다. 사용하려는 목적에 맞게 알맞은 값을 입력해주세요. > 데이터베이스 이름, Timezone 설정 등, 추가적인 설정값을 입력할 수 있습니다. 서비스 별로 표시되는 **더 많은 옵션**의 항목이 다릅니다. 사용하려는 목적에 맞게 알맞은 값을 입력해주세요. * **리소스 유형** : [구독 리소스와 프리티어 리소스](/ko/developers/resource) 중 선택 * **CPU** : 서비스가 사용할 vCPU 리소스의 최대값을 설정하며, '최소 vCPU' 선택 시 0.1 vCPU 사용 * **메모리** : 서비스가 사용할 메모리 리소스의 최대값을 설정 * **디스크** : 데이터베이스가 차지할 수 있는 디스크의 용량 설정 * **배포** : `배포하기` 클릭 Root Password 미설정 시, 자동생성된 Password를 [배포환경 설정탭의 시크릿 항목](/ko/developers/database#root-password-%EC%A1%B0%ED%9A%8C)에서 조회할 수 있습니다. ## 다른 서비스와의 통신 ### 같은 배포환경 내 서비스 > 같은 화면에 있는 서비스 사이에는 내부 연결 주소인 **서비스 이름과 포트번호로 통신**할 수 있습니다. 같은 화면에 있는 서비스는 같은 배포환경에 속합니다. 배포환경 별로 격리된 네트워크가 구성되기 때문에 방화벽 규칙 적용이 필요없고, 통신 지연 현상이 최소화됩니다. cloudtype의 작업단위인 스페이스, 프로젝트, **배포환경**, 서비스에 관한 내용은 [배포환경 페이지](/ko/developers/environment)를 참고하세요. ### 다른 배포환경 또는 외부 서비스 > 서비스 상세페이지 **연결 탭의 상단에 있는 주소(호스트네임 : 포트번호)로** 다른 배포환경 또는 외부의 서비스와 통신할 수 있습니다. 이 경우 TCP 외부 접속을 허용하도록 설정해야합니다. > 연결하려는 데이터베이스가 속한 배포환경의 설정탭에서 TCP 외부접속을 허용할 수 있습니다. TCP 접속 허용 설정은 배포환경 단위로 가능하며, 설정한 배포환경에 속한 서비스 전체에 적용됩니다. 서비스 단위의 개별 설정은 불가합니다. ### DB 관리 툴 > [접속 주소](/ko/developers/database#2-2)를 사용해 로컬 컴퓨터의 관리툴로 데이터베이스에 TCP 접속할 수 있습니다. > 접속정보를 입력한 후, 이어지는 화면에서 배포시 설정한 Root Password를 입력하세요. [MySQL Workbench Download](https://dev.mysql.com/downloads/workbench/) > Connection 탭에서 접속정보와 배포할 때 설정한 Username(기본값 **root**), Root Password를 입력하세요. [pgAdmin Download](https://www.pgadmin.org/download/) > `New Connection` 버튼 클릭 후, **Advanced Connection Options** 하단부의 General 탭에서 **포트번호까지 포함한 호스트네임**을 Host 필드에 입력하세요. > Authentication 탭에서 배포할 때 설정한 Username(기본값 **admin**), Root Password를 입력하세요. [MongoDB Compass Download](https://www.mongodb.com/try/download/compass) > `Add Redis Database` 버튼 클릭 후, 접속정보를 입력해주세요. [Redis Insignt Download](https://redis.io/insight/) DB관리 툴과 데이터베이스를 연결하려면 **TCP 외부접속을 허용하도록 설정해야합니다.** ## 데이터베이스 관리 ### 리소스 변경 > 서비스 상세페이지 설정화면의 배포 설정 항목에서 디스크, CPU 등의 리소스를 변경하고 `배포하기` 버튼으로 재배포하면 변경된 리소스가 적용됩니다. 재배포 시 기존의 데이터는 유지됩니다. ### Root Password 조회 > 배포환경 설정탭의 **시크릿**항목에서 배포과정에서 설정한 Root Password 값을 조회할 수 있습니다. ### 데이터베이스 삭제 > 서비스 상세페이지 설정탭 하단부의 `서비스 삭제하기` 버튼으로 데이터베이스를 삭제할 수 있습니다. 데이터베이스 삭제 시 해당 서비스를 통해 디스크에 저장된 데이터가 영구적으로 제거됩니다. # Deno Source: https://cloudtype.mintlify.app/ko/developers/deno ## 준비 및 확인사항 ### 지원 Deno 버전 * **1.10, 1.12, 1.14, 1.16, 1.18, 1.19, 1.20, 1.22, 1.24, 1.26, 1.28** * ⚠️ 로컬/테스트 환경과 클라우드타입에서 설정한 Deno 버전이 상이한 경우 정상적으로 빌드되지 않을 수 있습니다. ## 대시보드를 통한 생성 ### 1. 템플릿 선택하기 * **[Github 저장소에서 템플릿 보기](https://github.com/cloudtype-examples/deno.git)** * 시작하기 페이지의 **언어/플랫폼** 카테고리에 접속 또는 `⌘ + K` 를 사용하여 `deno` 를 검색하고 `Deno` 템플릿을 클릭하세요.
### 2. 새 저장소(repository) 생성하기 또는 나의 저장소 선택하기 클라우드타입은 기본적으로 사용자 Github 계정의 저장소에 반영된 소스를 배포합니다. * 1️⃣ **배포하려는 저장소가 없다면** ⇒ 클라우드타입이 제공하는 예제 저장소를 사용자의 Github 계정에 생성합니다. * 2️⃣ **배포하려는 저장소가 있다면** ⇒ 클라우드타입에서 배포할 사용자 본인의 저장소를 선택합니다. #### 1️⃣ 배포하려는 저장소가 없는 경우 * 아래의 그림처럼 **비공개 저장소 설정하기** 여부만 선택한 후 `저장소 만들기` 를 클릭하면 사용자의 Github 계정에 해당 템플릿 저장소가 자동으로 생성됩니다.
#### 2️⃣ 배포하려는 저장소가 있는 경우 * Github 계정에 존재하는 저장소를 사용하려는 경우 아래의 화면처럼 여러 저장소 중 배포를 원하는 항목을 선택하세요. 이미 위에서 저장소를 만든 경우 이 부분은 건너뛰어주세요.
* 저장소를 직접 선택한 경우, 빌드 및 시작을 위한 명령어 등 세부 설정이 기본 설정과 다를 수 있습니다. 아래의 그림처럼 빌드 설정의 **설정변경** 버튼을 클릭하고 수정이 필요한 설정사항을 수정해주세요.
### 3. 배포하기 * 위 과정을 마친 후 마지막으로 배포할 리전을 선택하고 `배포하기` 버튼을 클릭하면 배포가 자동으로 진행됩니다.
*** ## CLI 를 통한 생성 ### 1. 사전준비 아래 가이드에 따라 CLI 를 설치하고 로그인을 진행해주세요.
[CLI 설치하기](/ko/developers/cli/install) ### 2. 설정파일 생성 `.cloudtype/app.yaml` 파일을 생성하세요. #### Deno ```yaml theme={null} name: deno app: deno@1.19 options: ports: 8000 install: deno cache deps.ts start: deno run --allow-net deno.ts context: git: url: https://github.com/cloudtype-examples/deno.git branch: main preset: deno ``` ### 3. 배포하기 ```sh theme={null} $ ctype apply ``` ## 참고 ### FAQ * [서비스 접속 시 50X 페이지만 뜹니다.](/ko/troubleshooting/common) * [하나의 Git 원격 저장소에서 두 개 이상의 앱을 배포하고 싶어요.](/ko/troubleshooting/git) ### 공식문서 * [Deno Docs](https://doc.deno.land/) # 배포하기 Source: https://cloudtype.mintlify.app/ko/developers/deploy