R
Railway•11mo ago
didiervelez

I can not deploy angular project, killed

I do not know what is the problem I hope someone can help me, Project ID dd70810d-29a4-4c5e-b7b4-f2ba13eff217 Thank you
No description
No description
11 Replies
Percy
Percy•11mo ago
Project ID: N/A
Brody
Brody•11mo ago
ng serve starts a development server, you do not want to run a development server on railway, as you can see it started to use more than 512mb of ram and was killed to deploy an angular app properly you will need to use a production ready web server, here is a angular template that does just that https://github.com/brody192/angular-template - make sure that outputPath in your angular.json is set to just dist - copy the nixpacks.toml and Caddyfile from that repo into your repo
didiervelez
didiervelez•11mo ago
In this template I do not see de script start { "name": "angular-template", "version": "1.0.0", "scripts": { "ng": "ng", "dev": "ng serve", "build": "ng build", "watch": "ng build --watch --configuration development", "test": "ng test" }, When i delete this command of my project, it do not deploy
Brody
Brody•11mo ago
please follow the instructions i have just provided
didiervelez
didiervelez•11mo ago
Muchas gracias Brody, disculpa mi lentitud, gracias a tus instrucciones ya funciona y ya esta corriendo mi frontend en angular.
Brody
Brody•11mo ago
awsome! anything else you need help with?
didiervelez
didiervelez•11mo ago
No Brody, with this frontend no, but i have problem with my backend in .net 6, i have to open another topic in this channel?
Brody
Brody•11mo ago
yeah it would be best to open another thread
didiervelez
didiervelez•11mo ago
Thank you for your help you are the best!
Brody
Brody•11mo ago
no problem 🙂