Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Mar 25, 2024
1 parent db3caf5 commit c366cd7
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 24 deletions.
14 changes: 7 additions & 7 deletions .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ SWAGGER_PATH = api-docs
SWAGGER_VERSION = 1.0

# db
DB_HOST = host.docker.internal
DB_PORT = 13307
DB_HOST = roundhouse.proxy.rlwy.net
DB_PORT = 41854
DB_DATABASE = nest_admin
DB_USERNAME = root
DB_PASSWORD = root
DB_SYNCHRONIZE = false
DB_PASSWORD = d6bf1c6fEhgh6AF14ba1dcFeh353DD63
DB_SYNCHRONIZE = true
DB_LOGGING = ["error"]

# redis
REDIS_PORT = 6379
REDIS_HOST = host.docker.internal
REDIS_PASSWORD = 123456
REDIS_PORT = 29289
REDIS_HOST = roundhouse.proxy.rlwy.net
REDIS_PASSWORD = emP4Ojj6bHilebFEAf35JGhaNmpdFO2N
REDIS_DB = 0

# smtp
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/deploy-to-deno.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Deploy To Deno
on:
push:
branches: test
pull_request:
branches: test

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest

permissions:
id-token: write # Needed for auth with Deno Deploy
contents: read # Needed to clone the repository

steps:
- name: Clone repository
uses: actions/checkout@v3

- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*

- name: Install step
run: "pnpm i"

- name: Build step
run: "pnpm build"

- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: "nest-admin"
entrypoint: "dist/main.js"
root: "dist"
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,10 @@
"@nestjs/websockets": "^10.3.5",
"@socket.io/redis-adapter": "^8.3.0",
"@socket.io/redis-emitter": "^5.1.0",
"@types/lodash": "^4.17.0",
"axios": "^1.6.8",
"bull": "^4.12.2",
"cache-manager": "^5.4.0",
"cache-manager-ioredis-yet": "^2.0.2",
"chalk": "^5.3.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"cron": "^3.1.6",
Expand Down Expand Up @@ -101,7 +99,7 @@
"systeminformation": "^5.22.6",
"typeorm": "0.3.17",
"ua-parser-js": "^1.0.37",
"winston": "^3.12.0",
"winston": "^3.13.0",
"winston-daily-rotate-file": "^5.0.0"
},
"devDependencies": {
Expand All @@ -112,6 +110,7 @@
"@nestjs/testing": "^10.3.4",
"@types/cache-manager": "^4.0.6",
"@types/jest": "29.5.12",
"@types/lodash": "^4.17.0",
"@types/multer": "^1.4.11",
"@types/node": "^20.11.30",
"@types/passport-jwt": "^4.0.1",
Expand Down
26 changes: 12 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c366cd7

Please sign in to comment.