I've set up a deployment project for an Angular app, copying its files to a remote server (with SCP task) and building it with `ng serve` (with command over SSH task). Now, even though this works, and the app is successfully deployed, there are problems with this.
FIrst, the deployments are kept running for a long time, because the `ng serve` command doesn't provide a return code until it's canceled manually. Second, those deployments are always marked as failed, even though the app works - but that makes sense, because third, after executing those commands, there is no control over the deployment. If there's an error, I have to manually go to the server and kill the process, before trying again.
I have searched for solutions, but couldn't find any. Is there a better way of doing this?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.