diff --git a/.env.production b/.env.production index a9c77492..01273178 100644 --- a/.env.production +++ b/.env.production @@ -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 diff --git a/.github/workflows/deploy-to-deno.yml b/.github/workflows/deploy-to-deno.yml new file mode 100644 index 00000000..7425be06 --- /dev/null +++ b/.github/workflows/deploy-to-deno.yml @@ -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" \ No newline at end of file diff --git a/package.json b/package.json index 07f3436b..a693d6ad 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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": { @@ -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", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1566025c..e671ecaf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -80,9 +80,6 @@ dependencies: '@socket.io/redis-emitter': specifier: ^5.1.0 version: 5.1.0 - '@types/lodash': - specifier: ^4.17.0 - version: 4.17.0 axios: specifier: ^1.6.8 version: 1.6.8 @@ -95,9 +92,6 @@ dependencies: cache-manager-ioredis-yet: specifier: ^2.0.2 version: 2.0.2 - chalk: - specifier: ^5.3.0 - version: 5.3.0 class-transformer: specifier: ^0.5.1 version: 0.5.1 @@ -183,11 +177,11 @@ dependencies: specifier: ^1.0.37 version: 1.0.37 winston: - specifier: ^3.12.0 - version: 3.12.0 + specifier: ^3.13.0 + version: 3.13.0 winston-daily-rotate-file: specifier: ^5.0.0 - version: 5.0.0(winston@3.12.0) + version: 5.0.0(winston@3.13.0) devDependencies: '@antfu/eslint-config': @@ -211,6 +205,9 @@ devDependencies: '@types/jest': specifier: 29.5.12 version: 29.5.12 + '@types/lodash': + specifier: ^4.17.0 + version: 4.17.0 '@types/multer': specifier: ^1.4.11 version: 1.4.11 @@ -3217,7 +3214,7 @@ packages: /@types/lodash@4.17.0: resolution: {integrity: sha512-t7dhREVv6dbNj0q17X12j7yDG4bD/DHYX7o5/DbDxobP0HnGPgpRz2Ej77aL7TZT3DSw13fqUTj8J4mMnqa7WA==} - dev: false + dev: true /@types/luxon@3.3.8: resolution: {integrity: sha512-jYvz8UMLDgy3a5SkGJne8H7VA7zPV2Lwohjx0V8V31+SqAjNmurWMkk9cQhfvlcnXWudBpK9xPM1n4rljOcHYQ==} @@ -4423,6 +4420,7 @@ packages: /chalk@5.3.0: resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==} engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + dev: true /char-regex@1.0.2: resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} @@ -11424,7 +11422,7 @@ packages: execa: 4.1.0 dev: true - /winston-daily-rotate-file@5.0.0(winston@3.12.0): + /winston-daily-rotate-file@5.0.0(winston@3.13.0): resolution: {integrity: sha512-JDjiXXkM5qvwY06733vf09I2wnMXpZEhxEVOSPenZMii+g7pcDcTBt2MRugnoi8BwVSuCT2jfRXBUy+n1Zz/Yw==} engines: {node: '>=8'} peerDependencies: @@ -11433,7 +11431,7 @@ packages: file-stream-rotator: 0.6.1 object-hash: 3.0.0 triple-beam: 1.4.1 - winston: 3.12.0 + winston: 3.13.0 winston-transport: 4.7.0 dev: false @@ -11446,8 +11444,8 @@ packages: triple-beam: 1.4.1 dev: false - /winston@3.12.0: - resolution: {integrity: sha512-OwbxKaOlESDi01mC9rkM0dQqQt2I8DAUMRLZ/HpbwvDXm85IryEHgoogy5fziQy38PntgZsLlhAYHz//UPHZ5w==} + /winston@3.13.0: + resolution: {integrity: sha512-rwidmA1w3SE4j0E5MuIufFhyJPBDG7Nu71RkZor1p2+qHvJSZ9GYDA81AyleQcZbh/+V6HjeBdfnTZJm9rSeQQ==} engines: {node: '>= 12.0.0'} dependencies: '@colors/colors': 1.6.0