Skip to content

Commit

Permalink
Merge pull request #63 from Medici-Mansion/fix/deploy
Browse files Browse the repository at this point in the history
Fix/deploy
  • Loading branch information
raymondanythings authored Jan 8, 2024
2 parents 5b8b41b + c8e2f5e commit 5332b09
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 1 deletion.
71 changes: 71 additions & 0 deletions .github/workflows/cloudtype.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Deploy to cloudtype
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Connect deploy key
uses: cloudtype-github-actions/connect@v1
with:
token: ${{ secrets.CLOUDTYPE_TOKEN }}
ghtoken: ${{ secrets.GH_TOKEN }}
- name: Deploy
uses: cloudtype-github-actions/deploy@v1
with:
token: ${{ secrets.CLOUDTYPE_TOKEN }}
project: raymondanythings/catsnewyear
stage: main
yaml: |
name: shinnyang-server
app: node@20
options:
env:
- name: NODE_ENV
value: production
- name: DB_HOST
secret: DB_HOST
- name: DB_NAME
secret: DB_NAME
- name: DB_PORT
secret: DB_PORT
- name: DB_PWD
secret: DB_PWD
- name: DB_USER
secret: DB_USER
- name: EXPIRESTOKEN
secret: EXPIRESTOKEN
- name: GOOGLE_API_KEY
secret: GOOGLE_API_KEY
- name: GOOGLE_AUTH_CLIENT_ID
secret: GOOGLE_AUTH_CLIENT_ID
- name: GOOGLE_AUTH_CLIENT_SECRET
secret: GOOGLE_AUTH_CLIENT_SECRET
- name: GOOGLE_REDIRECT_URL
secret: GOOGLE_REDIRECT_URL
- name: KAKAO_CLIENT_ID
secret: KAKAO_CLIENT_ID
- name: KAKAO_REDIRECT_URL
secret: KAKAO_REDIRECT_URL
- name: PORT
secret: PORT
- name: RES_EXPIRESTOKEN
secret: RES_EXPIRESTOKEN
- name: ROUND
secret: ROUND
- name: SALT
secret: SALT
- name: TZ
secret: TZ
ports: 3000
install: npm i
build: npm run build
start: npm start
context:
git:
url: git@github.com:${{ github.repository }}.git
ref: ${{ github.ref }}
2 changes: 1 addition & 1 deletion src/oauth/oauth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class OauthService {
scope: string;
refresh_token_expires_in: number;
}>(
'https://kauth.kakao.com/oauth/token ',
'https://kauth.kakao.com/oauth/token',
{
code,
grant_type: 'authorization_code',
Expand Down

0 comments on commit 5332b09

Please sign in to comment.