By VST.GLOBAL
I have a nest.js app Im trying to get to work on the APP platform, I have installed the app from GIThub the output is saying its working ok but DO fails the deployment
My Output:
[2023-02-08 17:27:15] > node dist/src/main
[2023-02-08 17:27:15]
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [NestFactory] Starting Nest application...
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] MongooseModule dependencies initialized +69ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] PassportModule dependencies initialized +1ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] JwtModule dependencies initialized +1ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] ConfigHostModule dependencies initialized +1ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] AppModule dependencies initialized +1ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] ConfigModule dependencies initialized +0ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] MongooseCoreModule dependencies initialized +235ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] MongooseModule dependencies initialized +16ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] MongooseModule dependencies initialized +0ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] MongooseModule dependencies initialized +2ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] UsersModule dependencies initialized +2ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] KpiModule dependencies initialized +2ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] HolidaysModule dependencies initialized +1ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] AuthModule dependencies initialized +0ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RoutesResolver] AppController {/}: +7ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RouterExplorer] Mapped {/, GET} route +3ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RoutesResolver] UsersController {/users}: +0ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RouterExplorer] Mapped {/users/users, GET} route +1ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RouterExplorer] Mapped {/users/users/:username, GET} route +1ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RouterExplorer] Mapped {/users/signup, POST} route +2ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RoutesResolver] KpiController {/kpi}: +0ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RouterExplorer] Mapped {/kpi/kpis/:userID, GET} route +1ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RouterExplorer] Mapped {/kpi/kpi, POST} route +1ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RoutesResolver] AuthController {/auth}: +1ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RouterExplorer] Mapped {/auth/auth/login, POST} route +2ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RoutesResolver] HolidaysController {/holidays}: +1ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RouterExplorer] Mapped {/holidays/holidays/:userID, GET} route +0ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RouterExplorer] Mapped {/holidays/holiday, POST} route +3ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [NestApplication] Nest application successfully started +5ms
[]
As you can see Nest has started up fine
My App Spec
alerts:
- rule: DEPLOYMENT_FAILED
- rule: DOMAIN_FAILED
name: vmosbackend
region: lon
services:
- build_command: npm run build
environment_slug: node-js
github:
branch: master
deploy_on_push: true
repo: VST-GLOBAL/vstkpibackend
http_port: 8080
instance_count: 1
instance_size_slug: basic-xxs
name: vstkpibackend
routes:
- path: /
run_command: npm run start:prod
source_dir: /
Any ideas?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Did you check that the port in your main.ts is the same port you are specifying to the server?
change http port on settings. The nestjs default port is 3000
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.