'Deploying AdonisJS 5 in DigitalOcean as Application error

I'm following what's in the documentation of AdonisJS at https://docs.adonisjs.com/cookbooks/deploy-to-digial-ocean but without success.

I know in production environment won't install what's in devDependencies and won't have the packages to compile, but I don't get how to do this then apart of compile on my local machine and send to DigitalOcean only the build package. Just in case I'm posting here to see if there are any better solution for this and share with people that had the same problem.

$ node ace build --production
[ error ]  "build" command not found


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source